ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-general
php-general
Re: [PHP] foreach / unset
by Karlos Zafra other posts by this author
Oct 28 2005 12:06AM messages near this date
Re: [PHP] foreach / unset | [PHP] Trouble using DOM component with PHP 4.4.0
This syntax has the work done perfectly for me.

2005/10/28, Niels Ganser <php-general.mail@[...].de> :
> 
>  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
> 
> 
Attachments:
unknown1

Thread:
Richard Lynch
Bogdan Ribic
John Nichel
Jochem Maas
Richard Lynch
Brent Baisley
Jochem Maas
Niels Ganser
Karlos Zafra

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved