Re: what happened to that new isset() like language
| From: | Cris H | Date: | Fri, 09 Jul 2004 19:40:48 +0000 |
| Subject: | Re: what happened to that new isset() like language | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-11041@lists.php.net to get a copy of this message | ||
> That would satisfy some of the requested feature, but try
> calling ifsetor($my_array['bad key'],
> functionWithSideEffects()).
That could be circumvented (somewhat hackishly, I concede) by
recoding a new function and passing the second arg as the string
"functionWithSideEffects" and using the dereferencing () trick.
Although, I did indeed overlook the issue of not evaluating the
second arg unnecessarily. Tricky.
To quote from the classics: D'oh!
Regards,
Cris
___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many
all-new ways to express yourself http://uk.messenger.yahoo.com