0
How to store function result in variable PHP?
I want to store function result in variable , so that i can use updated value in next function .
2 Antworten
0
Gaganpreet singh
Just return result in function and assign that function to a variable like:
function abc() {
return "abcd";
}
$x = abc();
echo $x;