note 28095 deleted from function.array by jmcastagnetto

From: Date: Thu, 02 Jan 2003 02:18:54 +0000
Subject: note 28095 deleted from function.array by jmcastagnetto
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-41566@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" }

« previous php.notes (#41566) next »