function output problem
Posted: Fri Mar 31, 2006 5:45 pm
Hi, I want to assing wariable within function and then call the function so that variables within the function will be avelible to the rest of the script but i can get it working for some reason... can some one advice me on this?
This script returns nothing at all
Code: Select all
<?php
test();
echo $ip;
function test(){
$ip = "192.168.0.1";
return $ip;
}
?>This script returns nothing at all