Posted by Koncept on 11/02/06 19:35
I just ran a small test out of curiosity to see what would happen and I
must say that I am surprised at the result. Can anybody explain to me
why this code returns what it does? Does it make sense or is this a
bug?
<?php
$test['k1']['k2'] = 'hello';
$test['k1']['k2']['k3'] = 'world';
/*
Array
(
[k1] => Array
(
[k2] => wello
)
)
*/
?>
--
Koncept <<
"The snake that cannot shed its skin perishes. So do the spirits who are
prevented from changing their opinions; they cease to be a spirit." -Nietzsche
Navigation:
[Reply to this message]
|