> 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
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.
> --
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,
--- 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
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
5 matches
Mail list logo