On 16/09/15 14:30, Rowan Collins wrote:
> Yes, we can, and I repeatedly have. With the caveat that, like Perl, we
> raise an error if you try to use it on a plain variable rather than an
> array key or object property reference. My only remaining concern is
> that with that error in place, is "exists" the right name, and if not,
> what would be better?

Found the little gem I was trying to remember ... extract()
Import variables into the current symbol table from an array
THAT was the process I've seen used in libraries resulting in 'NULL'
variables where appropriate and yes I appreciate this is all very far
fetched, since one could check things on the array side, but it is where
I've seen mistakes with handling the generated variables.

Is extract compatible with the current way of working?

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to