RE: [PHP] backslash t
> I want php to print " \tab" > but when I do, I only get "ab" as output. > How do I keep the \t? \t is a tab character. If you looked in your source code, you'd see a tab there. Use "\\tab" ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] backslash t
You need to escape the '/' with a '/', as it is a special character. So, anytime you run into an issue where it looks like PHP is trying to interpret something you just want it to print. The best first guess is to try and escape it. Just Thought I would offer a little more explaination. > --- Jan Grafström <[EMAIL PROTECTED]> wrote: > > I want php to print " \tab" > > echo " \\tab"; > > Chris > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] backslash t
At 20:19 22-1-03, you wrote: Hi, I want php to print " \tab" but when I do, I only get "ab" as output. How do I keep the \t? Jan, between "double quotes", several things are translated this becomes \t a tab \r a carriage return \n a newline \" " \\ \ There are more, see the documentation. So to type \tab use ' \tab ' (note that these are 'single quotes') or " \\tab " -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] backslash t
--- Jan Grafström <[EMAIL PROTECTED]> wrote: > I want php to print " \tab" echo " \\tab"; Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] backslash t
Hi, I want php to print " \tab" but when I do, I only get "ab" as output. How do I keep the \t? Thanks in advance. Jan Grafström -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php