note 42444 rejected from function.array by tomsommer
| From: | tomsommer@php.net | Date: | Mon, 17 May 2004 06:33:36 +0000 |
| Subject: | note 42444 rejected from function.array by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-69698@lists.php.net to get a copy of this message | ||
Note Submitter: asp_php_coder at hotmail dot com
----
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