What is difference between \
and \\
?
echo $path_1="C:\wamp\www\practice\";
Output shows error:
Parse error: syntax error, unexpected $end, expecting T_VARIABLE or T_DOLLAR_OPEN_CURLY_BRACES or T_CURLY_OPEN
echo $path_1="C:\\wamp\\www\\practice\\";
Output:
C:\wamp\www\practice\
Instead of printing C:\\wamp\\www\\practice\\
it prints C:\wamp\www\practice\