Maximum length for array key?
Posted: Thu May 01, 2008 2:54 pm
Hey guys... I am building an array that uses string indexes and wasn't sure if there is a MAX to the number of characters you can have in the index name of an array's element. Example:
..or can I use as long a string as I want? It just looks wierd having the key be so long, but thought I'd ask to be on the safe side. Thanks.
Code: Select all
$zipCodes = array(
'Saint Delmarca de Angelo of West Corpus Christie' => 39288
'Le Tettelluna San Madrid in East Corpus Equadoria' => 38723
);