Wednesday, 22 March 2017

Control Characters in PHP

\n :- New Line Character

for example:

echo"Welcome \n";
echo"to PHP";

\r :- Carriage Return
\t :- Tab
\\ :- Display a \
\$ :- Display a $
\" :- Display a "
\0 to \777 :- Display s Character corresponding to a hexadecimal (base 8) code.
\x0 to \xff :-Display a character corresponding to a hexadecimal (base 16) code.

No comments:

Post a Comment