T Tâm Tây New member Sep 20, 2021 #1 What will be the output of the following PHP code? Code: <?php function foo($msg) { echo "$msg"; } $var1 = "foo"; $var1("will this work"); ?> A. error B. $msg C. 0 D. will this work
What will be the output of the following PHP code? Code: <?php function foo($msg) { echo "$msg"; } $var1 = "foo"; $var1("will this work"); ?> A. error B. $msg C. 0 D. will this work
L Lê Minh Member Sep 20, 2021 #2 Answer: d Explanation:It is possible to call a function using a variable which stores the function name. Upvote 0 Downvote
Answer: d Explanation:It is possible to call a function using a variable which stores the function name.