note 42444 added to function.array

From: Date: Mon, 17 May 2004 04:27:46 +0000
Subject: note 42444 added to function.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-69685@lists.php.net to get a copy of this message
i just want to clear what bitmore.co.kr (on 20-Feb-2004 11:42) sees the following as Bug ///Note BugShow $array = array( 1, 0=>13); print_r($array);echo "<br>"; //Array ( [0] => 13 ) ///??? he/she says that the above is a bug, but i do not think so (may be i am wrong, please correct me if so) ...... in array(1, 0=>13) ............. first "1" is allocated at index "0" of the array and then again if we do something on the SAME index "0" (here we r putting "13" in it), then it REPLACES the previous value...... so what is wrong in this hope this helps vishwa vivek ---- Manual Page -- http://www.php.net/manual/en/function.array.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42444 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42444&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42444&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#69685) next »