Results 1 to 4 of 4
How does PHP treat quotes? In PERL, I believe everything inside a single quote isn't interpreted while the double quotes are interpreted. For example, '\thello' should ouput as \thello while ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-03-2003 #1Linux Engineer
- Join Date
- Nov 2002
- Location
- Queens, NY
- Posts
- 1,319
quotes
How does PHP treat quotes? In PERL, I believe everything inside a single quote isn't interpreted while the double quotes are interpreted. For example, '\thello' should ouput as \thello while "\thello" should output <tab space>hello.
The best things in life are free.
- 05-03-2003 #2The "other two syntaxes" mentioned being double quoted and heredoc syntax.
Originally Posted by www.php.net
- 05-31-2003 #3Just Joined!
- Join Date
- May 2003
- Posts
- 24
See... if you put: echo " Yo World... Matt Says, \"Hey\"";
that'll give you:
Yo World... Matt Says, "Hey"
Does that help or am I a lost lonar?
- 06-04-2003 #4Linux Engineer
- Join Date
- Nov 2002
- Location
- Queens, NY
- Posts
- 1,319
PHP's quotation rules are exactly like PERL's rules.
The best things in life are free.


Reply With Quote
