note 4883 modified in Arrays by ronabop
| From: | ronabop@php.net | Date: | Fri, 25 Aug 2000 08:57:04 +0000 |
| Subject: | note 4883 modified in Arrays by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-3184@lists.php.net to get a copy of this message | ||
Szia all out there! When i was playing with a psql query to html function, i had to notice that when
you give an array to a function, php looses the associative names. That means that you cannot use
the associative array as an associative aray, just as an indexed array inside functions, when you
get this array as a parameter.
I think I know why this is: these long, redundant human-based array indexes are not really stored,
just replaced bz indexes by some type of preprocessor. And the consequence: do not try to use
indexed arrays and associative arrays in the same array, because $array[foo] probably will be
equivalent with $array[0]. I do not know that this is a policy to prevent programmers from errors
using the same associative indexes at multiple codes, or a bug. Sorry about my poor english, I am
Hungarian.
http://www.php.net/manual/arrays.php