extract() and symbol tables...
| From: | adam beecher | Date: | Wed, 05 Jul 2000 19:20:25 +0000 |
| Subject: | extract() and symbol tables... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-5042@lists.php.net to get a copy of this message | ||
Before I ask the real question, a lead-in:
Is a separate symbol table created for user-defined functions?
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?
Ta,
a
d
a
m
_______________________________________________________
<?php
$s=array("J","A","p","h","p","H");
for($i=0;$i<count($s);$i++){echo$s[$i];}
?> :)