How to print \ in php. Only \ with out using . or *.
Answers were Sorted based on User's Feedback
Answer / vijay
The answer is simple.
<?php print "\\"; ?>
I hope this coud help u.
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / swarnadip
Previous answer is correct but u can also use echo in place
of print
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / 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 |
Answer / gsrlingam
write like this
<?php print_r($varaible);?>
<?php echo $varaible;?>
<?php echo "String";?>
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / ram
i think the above answer is not correct.
i think this will work.
<?php print "\\";
| Is This Answer Correct ? | 0 Yes | 2 No |
What the limitation of header() function in php?
Why is PHP-MySQL frequently used for web (Portal) Development?
5 Answers T3 Softwares, Wipro,
In forms when i am click submit button it will store on the desired table as well as it send to paticuler mail id. Any body know the answer plz give me detail information.
How is traits used in php?
How many types of functions are there in php?
What is difference between sql and php?
What is the difference between Split and Explode in PHP?
What is orm in php framework?
What are the different types of Errors in PHP?
20 Answers Cisco, TCS, Troop Software,
Describe session in php.
How do you run a php script from the command line?
When to use inquire vs enquire?