Vidyalelo
PHP · Q24

Functions

Programming · PHP · question 24

Q24

What will be the output of the following PHP code?

A.
helloblabla
B.
error
C.
hello
Answer
D.
helloblablablabla

Answer: Option C

Solution

Answer: Option C
Solution:
If you want to put some variables in function that was not passed by it, you must use “global”. Inside the function type global $op2.