+ 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.
1 ответ
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;