Re: [Zend] Patch for unset()
| From: | waldschrott | Date: | Thu, 15 Jun 2000 18:11:54 +0000 |
| Subject: | Re: [Zend] Patch for unset() | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-21450@lists.php.net to get a copy of this message | ||
Why would someone simplify his scripts? ;)
I would welcome this patch, in some scripts I´ve used constucts like this, just because unset() is not able to unset all at once
$properties=array('average_dirty','average_clean','average_rated', 'values_min');
foreach ($properties AS $property)
unset($$property->test);
Andi Gutmans wrote:
Why would you want that? Andi On Thu, 15 Jun 2000, Faisal Nasim wrote: Hi, Could someone apply this patch? It extends the ability of unset() to allow multiple arguments. unset ( VAR , VAR , VAR , .... ) Thanks. Faisal-- o----------0-¬---------O-·---¬----o---®-----o o O ° . | http://www.kiffen.de | pRoteçt y0ur bRaín |0 O ° ¤ ° · 0°·³°²'²³-¹'³´³°^°³~³²³°'³²²¨³²^³¹³²°²³`³º³°Þ ° o © ° . · | psychedelic experience | gott@kiffen.de | O ° o ° o-¬--o--0-----©-·--O-----o-----0-¤----------o 0 ° · ° . ¤ ·