note 3905 modified in language.types.array by irc-html

From: Date: Sat, 19 Jan 2002 12:39:19 +0000
Subject: note 3905 modified in language.types.array by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25153@lists.php.net to get a copy of this message
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); --was-- 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: <PRE> $ary = array("foo" => "bar", 1, 2); $ary = array("foo" => "bar", 0 => 1, 1 => 2); </PRE> http://www.php.net/manual/en/language.types.array.php

« previous php.notes (#25153) next »