Re: foreach / unset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Why should this be "unsafe" (whatever the heck that means) in any way? Of 
course you can do it.

Regards,
Niels.

[sorry for mailing to your private address. wrong button :)]

> Anyway, can you do *this* safely as a DOCUMENTED FEATURE:
>
> foreach($array as $k => $v){
>   if (...) unset($array[$k]);
> }

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux