Re: [PHP] Q: Array

2002-01-11 Thread Ivo Stoykov
Hi again Michael: Digging documentation I found out that this behaviour (string and int keys) is native for mysql_fetch_arrow() (found into the help: 'In addition to storing the data in the numeric indices of the result array, it also stores the data in associative indices, using the field names

Re: [PHP] Q: Array

2002-01-11 Thread Ivo Stoykov
Hi again Michael: Digging documentation I found out that this behaviour (string and int keys) is native for mysql_fetch_arrow() (found into the help: 'In addition to storing the data in the numeric indices of the result array, it also stores the data in associative indices, using the field names

Re: [PHP] Q: Array

2002-01-11 Thread Ivo Stoykov
Hi again Michael: Digging documentation I found out that this behaviour (string and int keys) is native for mysql_fetch_arrow() (found into the help: 'In addition to storing the data in the numeric indices of the result array, it also stores the data in associative indices, using the field names

Re: [PHP] Q: Array

2002-01-11 Thread Ivo Stoykov
Hi again Michael: Digging documentation I found out that this behaviour (string and int keys) is native for mysql_fetch_arrow() (found into the help: 'In addition to storing the data in the numeric indices of the result array, it also stores the data in associative indices, using the field names

Re: [PHP] Q: Array

2002-01-11 Thread Ivo Stoykov
Hi again Michael: Digging documentation I found out that this behaviour (string and int keys) is native for mysql_fetch_arrow() (found into the help: 'In addition to storing the data in the numeric indices of the result array, it also stores the data in associative indices, using the field names

Re: [PHP] Q: Array

2002-01-11 Thread Ivo Stoykov
Thank you Michel You;ve understand correct the question. Thank you for the removing new keyword Everything you've said is exact but using following snippet $b = array('one' => 'bla', 'two' => 'blabla', 'three' => 'blablabla'); while(list($k, $v) = each($b)) { print "$k - $v"; } the

Re: [PHP] Q: Array

2002-01-10 Thread Michael Sims
At 09:18 PM 1/10/2002 +0100, Ivo Stoykov wrote: >How could I determine whether I have in the array's key integers *and* >strings or integers only? I'm not sure exactly what you're asking but I'll give it a shot... >i.e. >$a = new array('one', 'two', 'three'); // this has only integers (am I >wro

Re: [PHP] Q: array intersection problem

2001-08-14 Thread Gyozo Papp
Hi, play with array_intersect or array_diff and some other array functions. http://www.php.net/manual/en/function.array-intersect.php (PHP 4 >= 4.0.1) http://www.php.net/manual/en/function.array-diff.php (PHP 4 >= 4.0.1) - Original Message - From: "Joe Rice" <[EMAIL PROTECTED]> To: <[