On 16/09/15 21:03, Robert Williams wrote:
> "A variable is considered to be null if […] it has been unset().”

If the memory storing the variable has been destroyed by unset() then
there is nothing to 'consider' the variable does not exist?

If the variable has been created but as yet has not had a value assigned
then it exists in an unset state ... which is NULL. The nice thing at
this point is one can assign a number to the variable, or a string, or
even an array, depending on the need, so 'exists but I don't know what
as yet' is a logical state, and a non-numeric string may indicate an
error while the valid value is numeric. An alternative to throwing
exceptions everywhere :) And one that can be used between the database
and PHP ...

-- 
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