Vidyalelo
PHP · Q21

Basic PHP

Programming · PHP · question 21

Q21

Which of the below symbols is a newline character?

A.
\r
B.
\n
Answer
C.
/n
D.
/r

Answer: Option B

Solution

Answer: Option B
Solution:
PHP treats \n as newline character.