Hello there.
[PHP]$str="This is \na ball";
echo $str;[/PHP]
Is there a way i can make the text to be as is, without expanding the escape sequences. I know that single quoted strings do not expand escape sequences. But I need to echo text that's been entered by the user in a html textarea as is. And thats why I dont want the escape sequences to be expanded.
Thanks,
Hanaa
[PHP]$str="This is \na ball";
echo $str;[/PHP]
Is there a way i can make the text to be as is, without expanding the escape sequences. I know that single quoted strings do not expand escape sequences. But I need to echo text that's been entered by the user in a html textarea as is. And thats why I dont want the escape sequences to be expanded.
Thanks,
Hanaa
Comment