I needed this once, but I could not figure out how to just create the vars
in current scope.
If my_extract() is called from within a function, then the variables will
not be available unless you declare them global (which kinda makes the
function pointless).
Any ideas?
-Jason Garber
IonZoft.
You may want to do something like this instead:
--Joe
On Sun, Nov 18, 2001 at 04:21:46PM -0500, David Bernier wrote:
> There is this array which I would like to convert into a series variables using the
>extract function:
>
> $oz = array(
> "lion" => "courage",
> "dorothy" => "kansas",
There is this array which I would like to convert into a series variables using the
extract function:
"courage",
"dorothy" => "kansas",
"scarecrow" => "brain"
"tin man" => "heart");
extract($oz);
?>
now, I would like to access my new variables. it is obviously easy for $lion,
$dorothy
3 matches
Mail list logo