T Thịnh Võ Member Sep 20, 2021 #1 What will be the output of the following PHP code? Code: <?php $var = 10; function one() { echo $var; } one(); ?> A. Error B. 10 C. No Output D. None of the Mentioned
What will be the output of the following PHP code? Code: <?php $var = 10; function one() { echo $var; } one(); ?> A. Error B. 10 C. No Output D. None of the Mentioned
T Trần Thị Mai New member Sep 20, 2021 #2 Answer: c Explanation: $var is not global and hence is not available for one(). Upvote 0 Downvote