0

i am trying to print " in echo statement.
i can't get any method other than

<?php 
echo " " ";
?>

which is definitely wrong.
help me to find a way out of it.
any help is appreciated.

Edited by diafol: apply code formatting

3
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by nchy13
0

try using single qoute for the double quotes and double quoutes for the single quotes. Otherwise, yo can escape it. Another alternative is to use heredoc for a longer string., but for your situation something like this will do..
<?php
echo '"';
echo "' '";
?>

0

thanks for your response.
i will keep that in mindand use it in future.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.