Posted by m.epper on 02/24/06 18:51
Hi to everybody.
First of all sorry for my english, I'm italian.
How can I execute a portion of code, in a function, into the global
scope?
Example:
<?php
$var="hello world";
function myfunc(){
eval("echo $var;");
}
myfunc();
?>
I need to see "hello world".
Is there any solution?
Navigation:
[Reply to this message]
|