Hi to all,
 
I have a problem with function() and some variables.
 
The issue is this
 
I declare the function, suppose:
 
function test_func($param1) {
echo $param1;
}
 
when I call the function like;
 
<?php test_func(123)?>
 
works OK!
 
But if I try something like this:
 
<?php
 
test_func(123);
echo $param;
 
?>
 
This doesn't work. I need to get some variables values out of the function.
Is there a way to make te variables defined in the function 'global' ? So I
can use them after the function call.
 
Thanks in advance!!
 
regards,
 
f.


Reply via email to