Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to print \ in php. Only \ with out using . or *.

Answers were Sorted based on User's Feedback



How to print \ in php. Only \ with out using . or *...

Answer / vijay

The answer is simple.

<?php print "\\"; ?>

I hope this coud help u.

Is This Answer Correct ?    4 Yes 3 No

How to print \ in php. Only \ with out using . or *...

Answer / swarnadip

Previous answer is correct but u can also use echo in place
of print

Is This Answer Correct ?    2 Yes 1 No

How to print \ in php. Only \ with out using . or *...

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

How to print \ in php. Only \ with out using . or *...

Answer / malli

<?php echo "/"; ?>

Is This Answer Correct ?    0 Yes 0 No

How to print \ in php. Only \ with out using . or *...

Answer / gsrlingam

write like this
<?php print_r($varaible);?>
<?php echo $varaible;?>
<?php echo "String";?>

Is This Answer Correct ?    0 Yes 1 No

How to print \ in php. Only \ with out using . or *...

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

How to print \ in php. Only \ with out using . or *...

Answer / vikas

<?php echo "\"?>

Is This Answer Correct ?    0 Yes 6 No

Post New Answer

More PHP Interview Questions

How can I display text with a php script?

0 Answers  


I am writing an application in php that outputs a printable version of driving directions. It contains some long sentences, and I am a neat freak, and would like to make sure that no line exceeds 50 characters. How do I accomplish that with php?

0 Answers  


What is the string concatenation operator in php?

0 Answers  


How can we create a database using PHP and mysql?

3 Answers  


What is static variable in php?

0 Answers  


What is $_ server request_method == post?

0 Answers  


Explain different types of errors in PHP (i.e. arguments in errorreporting function)?

8 Answers   Base2 Infotech, DCI, Microsoft, Tata Elxsi,


What are psrs?

0 Answers  


Explain what is the function file_get_contents() usefull for?

0 Answers  


What is difference between python and php?

0 Answers  


what method is used to generate a random number?

4 Answers  


Do while loops?

0 Answers  


Categories