key length in an array

From: Date: Tue, 10 Jul 2001 18:59:52 +0000
Subject: key length in an array
Groups: php.general 
Request: Send a blank email to php-general+get-57233@lists.php.net to get a copy of this message
Hey! I was wondering if anyone knows if there is a limit to how long a string can be when used as a key in an array. Also, what if they are the same up to some point? For example, $string = "SomeStringUsedAsKey"; $string2 = "SomeStringUsedAsKeyAgain"; $myArray[$string] = "some value"; $myArray[$string2] = "some other value"; Any thoughts on the matter? Thanks! Matthew Hanna

« previous php.general (#57233) next »