note 28095 added to function.array

From: Date: Thu, 02 Jan 2003 01:15:31 +0000
Subject: note 28095 added to function.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-41564@lists.php.net to get a copy of this message
<?php $arr = array(0 => 'a', 1 => 'b', '0' => 'c', '1' => 'd'); var_dump($arr); ?> Will only create an array of two elements because array() dont care about index type. $arr will be. array(2) { [0]=> string(1) "c" [1]=> string(1) "d" } -- http://www.php.net/manual/en/function.array.php http://master.php.net/manage/user-notes.php?action=edit+28095 http://master.php.net/manage/user-notes.php?action=delete+28095 http://master.php.net/manage/user-notes.php?action=reject+28095

« previous php.notes (#41564) next »