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
What is the difference between php traits vs interfaces?
How to read one character from a file?
What is the delimiter syntax is PHP's default delimiter syntax
How to connect to a url in php?
Tell me how a constant is defined in a php script?
Why do we use interface in php?
Is rent a variable cost?
What is sorting php?
What version of php do I have windows?
Is null function in php?
What is trim function in php?
Explain how is it possible to cast types in php?
What are the common uses of php?
How do you create an array in php?
What is meant by PEAR in PHP?