Bizarre array key 'feature'?

From: Date: Thu, 09 Nov 2000 10:45:03 +0000
Subject: Bizarre array key 'feature'?
Groups: php.dev 
Request: Send a blank email to php-dev+get-37520@lists.php.net to get a copy of this message
Hi, all. Hmm.. bit of a strange one, this... Is 'default' considered a reserved word in the construction of muti-dimensional arrays? ie: The following code works. $ourArray[test][a] = true; $ourArray[test][b] = false; ... But the following fails (Parse error: parse error, expecting `']'') at the first line containing the 'default' key. $ourArray[default][a] = true; $ourArray[default][b] = false; Using PHP4.0.2 (yeah, I know I should probably upgrade). Thanks in advance, JP. ------------------------------------------------------------------ John Parker email: jparker@itchannel.net Internet Project Manager/Software Engineer web:www.itchannel.net itCHANNEL International Ltd. tel: +44 (0) 1202 291939

« previous php.dev (#37520) next »