note 3905 deleted from language.types.array by felipe

From: Date: Sat, 29 Dec 2007 16:45:30 +0000
Subject: note 3905 deleted from language.types.array by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134130@lists.php.net to get a copy of this message
Note Submitter: mjp at pilcrow dot madison dot wi dot us Reason: 5 ---- Those with a perl background may be surprised to learn that the 'thick arrow' and comma operators are not synonymous in array construction. For example, the following are equivalent: $ary = array("foo" => "bar", 1, 2); $ary = array("foo" => "bar", 0 => 1, 1 => 2);

« previous php.notes (#134130) next »