Re: Don't understand what is this $arr['N']['#']

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It flance schreef:
Hi,

I am working on the code of a former employee and I don't understand what this  $arr['N']['#'] refers to.

I know it is a multidimensional associative array but the # i don't what this means.

it's a string ... used as the (associative) key to an array. the item you mention probably contains
an id or number (because '#' is sometimes used to mean that), try this:

var_dump($arr['N']['#']);

'#' is just a string, it could be anything: 'A', 'B', 'my_array_key', 'even a complete sentence',
these are all valid associative array keys.


Thank you





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux