How to print \ in php. Only \ with out using . or *.
Answer Posted / naresh
$something = "oh something";
echo "My answer is \\\"is"\\\ $something" <br/>;
output:"My answer \"is" \ oh something
when we declare single \ it escaped but when we double the \
it will display the single \.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you destroy a session?
How many data types are there in php?
Which is better php or nodejs?
What is the purpose of a query?
How are php sessions stored?
Explain about the $_GET variable of PHP?
Explain what is the function file_get_contents() usefull for?
What is the difference between for and foreach in php?
How to convert a string to uppercase in php?
What is the difference between null and empty?
What is php built on?
What is the sign to start variables in PHP?
Tell me will a comparison of an integer 12 and a string "13" work in php?
What is a substring in php?
What would occur if a fatal error was thrown in your php program?