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

Describe session in php.

0 Answers  


Explain what does the unset() function means?

0 Answers  


What is the difference between static and dynamic websites?

0 Answers  


how we can retrive data in pdf along php mysql?

2 Answers  


What is the meaning of xdebug?

0 Answers  


How can cross site request forgery csrf be prevented?

0 Answers  


How to call a php function from another php file?

0 Answers  


find highest salary

8 Answers  


Explain about objects in PHP?

0 Answers  


Does php have block scope?

0 Answers  


What is the default session time in php?

0 Answers  


What is putenv?

0 Answers  


Categories