Welcome! Log In Create A New Profile

Advanced

escape

Posted by 46230653 
Announcements Last Post
Announcement myUnisa availability 21 to 24 March 2019 03/17/2019 02:24PM
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
escape
July 30, 2012 08:44PM
Hi guys, please bear with me in PHP im still new, I understand the usage and the meaning of those escape characters on page 17, but with php is either it ignores them ir print them if I use single, I have managed to use \n with nl2br and it works, but im still strugling with the rest, please help a poor web developer
avatar
Mac
Re: escape
July 31, 2012 07:46AM
Please follow the rules and post your effort!
avatar Re: escape
July 31, 2012 10:24AM
46230653
The new line (\n), tab (\t) are not working; the browser ignore all white spaces, but works in php command line interface
Re: escape
August 09, 2012 04:51PM
I cannot get the \n escape character to work. But it's in my assignment, as we need to show 5 examples, and only the \\, \$ and \" works. That's only 3 examples.
So I'll put my \t and \n examples in, but if it doesn't work, do I still get the marks? as it's exactly like in textbook.
<?php
echo "Line 1 \n.";
echo "Line 2 \n.";
echo "Line 3 \n.";
?>
above makes no difference, despite what the textbook says. It prints on the same line.
Re: escape
August 10, 2012 04:54PM
i also have the same problem, it does not go to the next line

What must we do Mac?
avatar
Mac
Re: escape
August 13, 2012 10:33AM
Do some research smiling smiley
Sorry, only registered users may post in this forum.

Click here to login