+ 1

How can I apply PHP's "Variable Variables" in solving a real life problem?

I got confused trying to understand PHP's "Variable Variables". Please someone explain it for me with a real life problem.

19th May 2017, 1:54 PM
Wendo J.
Wendo J. - avatar
1 Odpowiedź
0
for example, if you have a very long variable name that you want to shorten for frequent use in your script, then you could use this technique to save yourself some typing, in code: $your_name_is = 'Joyce Wendo'; $name = 'your_name_is'; echo $name;
19th May 2017, 6:17 PM
Jaineshkumar Patel
Jaineshkumar Patel - avatar