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
Is echo a function in php?
How to remove the new line character from the end of a text line in php?
What is magic quotes?
What is the difference between $message and $$message in php?
What difference between require() and require_once()?
Tell me how to execute an sql query? How to fetch its result?
Is php case sensitive?
What is the super method?
How to delete a file from the system?
What are the differences between PHP3 and PHP4 and PHP5? what is the current stable version of PHP?
How to get the total number of values in an array?
Explain the advantages of using PHP?
How to get no. of rows using MYSQL function?
How do I display php errors?
How to check an element is exists in array or not in php?