Vidyalelo
PHP · Q37

Operators And Expressions

Programming · PHP · question 37

Q37

What will be the output of the following PHP code ?

A.
PHP is a scripting language
B.
__LINE__
C.
2
Answer
D.
ERROR

Answer: Option C

Solution

Answer: Option C
Solution:
__LINE__ is a magical constant that gives the current line number and cannot be used a variable/constant name.