note 18993 added to function.array-push

From: Date: Tue, 12 Feb 2002 22:02:08 +0000
Subject: note 18993 added to function.array-push
Groups: php.notes 
Request: Send a blank email to php-notes+get-26526@lists.php.net to get a copy of this message
Anonymous said: array_push($myarray,array("mykey"=>"myvalue")); This will not return a syntax error. But this is totally incorrect. It's equivalent to: $myarray[count($myarray)] = array("mykey"=>"myvalue")); -- http://www.php.net/manual/en/function.array-push.php http://master.php.net/manage/user-notes.php?action=edit+18993 http://master.php.net/manage/user-notes.php?action=delete+18993 http://master.php.net/manage/user-notes.php?action=reject+18993

« previous php.notes (#26526) next »