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 can you declare the array in php?
Is php a cms?
What is array filter in php?
which will print out the php call stack?
Which cryptographic extension provide generation and verification of digital signatures?
Why constructor is not overridden?
What is the difference between require and include in php?
Which functions are used to count the total number of array elements in php?
How can you get the size of an image in PHP?
Is numeric in php?
Which function is used to strip whitespace?
How to get no. of rows using MYSQL function?
What is an operator in php?
What is the correct syntax of mail() function in php?
what is difference between PHP4 , PHP5