Re: Don't understand what is this $arr['N']['#']
| From: | Jochem Maas | Date: | Wed, 24 Sep 2008 18:00:19 +0000 |
| Subject: | Re: Don't understand what is this $arr['N']['#'] | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280866@lists.php.net to get a copy of this message | ||
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