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

[PHP] Q: Array

2002-01-10 Thread Ivo Stoykov
Hi group: I've following question: How could I determine whether I have in the array's key integers *and* strings or integers only? i.e. $a = new array('one', 'two', 'three'); // this has only integers (am I wrong?) $b = new array('one' => 'bla', 'two' => 'blabla', 'three' => 'blablabla'); // i

Re: [PHP] Q: array intersection problem

2001-08-14 Thread Gyozo Papp
MAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 2001. augusztus 14. 19:57 Subject: [PHP] Q: array intersection problem > hi, > > i have two arrays that i would like > to find the intersection and at > this intersection alter the value. > > $invalid = array("1"

[PHP] Q: array intersection problem

2001-08-14 Thread Joe Rice
hi, i have two arrays that i would like to find the intersection and at this intersection alter the value. $invalid = array("1","3","9"); $questions = array("1","2","3","4","5","6","7","8","9"); and i would like the result to be an new array that looks like this: $new_questions = array("1",