[thelist] PHP variable list

Andrew Forsberg andrew at thepander.co.nz
Fri Apr 12 16:22:01 CDT 2002


On Sat, 2002-04-13 at 09:04, Raymond Camden wrote:
> I'm no PHP coder - but how would one get undefined variables? Isn't that
> impossible in _any_ language.
>
> Shoot, couldn't you say:
>
> a is not defined
> aa is not defined
> aaa is not defined
>
> etc into infinity?


Oh yea! :) I was thinking of unset variables, rather than the set of
vars not defined... which as you point out, is infinite.

Bill:
Neither print_r nor var_dump reveal variables that have been unset(). It
seems that unset() really does totally and irretrievably destroy them.

Cheers
Andrew





More information about the thelist mailing list