Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2000071

Re: [PHP] extract() and symbol tables... From: Rasmus Lerdorf (rasmus <email protected>)
Date: 07/05/00

> Before I ask the real question, a lead-in:
> Is a separate symbol table created for user-defined functions?

Yes

> Now, the real question:
> When running extract() inside a user-defined function, are the variables
> imported into the global symbol table, or to a symbol table local to the
> function, assuming the answer to Q1 was yes?

local, that's why the extract() docs say 'current symbol table'.

-Rasmus

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>