Discussion Forum : Php Functions
Question - What will be the output of the following PHP code?function foo($msg) {echo "$msg";}$var1 = "foo";$var1("will this work");
Options:
A .  Error
B .  Will this work
C .  0
D .  $msg
Answer: Option B

Submit Your Solution Below and Earn Points !
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *