Hello.
how can you get the value of a variable that is defined inside a function, i want to print this value outside of the function and the variable value is generated inside the function.
ryza.
you need to return it from within the function first, for example:
function test() { // stuff here $myvar = "the value"; return $myvar; } // get the value like this: echo test();
You can also define the variable as global inside the function, but the method $SuperString showed you is better practice in most cases.