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 .

10th Jul 2021, 4:44 PM
Gaganpreet singh
Gaganpreet singh - avatar
2 Answers
0
Gaganpreet singh Just return result in function and assign that function to a variable like: function abc() { return "abcd"; } $x = abc(); echo $x;
10th Jul 2021, 5:18 PM
A͢J
A͢J - avatar