|
Posted by Giovanni R. on 05/29/07 22:43
gosha bine <stereofrog@gmail.com> wrote:
> I'm afraid that's not possible, Giovanni.
Never mind, it's not a big problem. :-)
> The usual workarounds are to use '@' operator to suppress notices
> wrapper(@$array['inexistent_index']);
Hey, when using the @ operator that index is NOT added to the array!
Good: it's almost the same result of isset(). :-)
I hadn't tried that code before because, as far as I *knew*, the @
operator only suppressed notices, while the real problem was that
byRef() was adding the index to the array, besides raising the notice.
I'm now asking myself if this is not a bug - an undocumented feature. :)
Thanks to all for your answer.
Giovanni
Navigation:
[Reply to this message]
|