ooops
On Thursday 07 March 2002 09:09 pm, Andrey Hristov wrote:
> try this:
> echo "foo".$i++;
> echo "\n";
> echo "bar".($+++0);
> ?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
try this:
Thanks for showing that I add new element to the array. This is because on last
iteration $k is null and I access $ar[$k] which automatically adds the new element.
Why? I don't know? Maybe because I refer it by reference!
The fixed code is
This will not add new element to the arra
2 matches
Mail list logo