note 48211 deleted from function.explode by bjori
| From: | bjori@php.net | Date: | Mon, 25 Sep 2006 08:11:13 +0000 |
| Subject: | note 48211 deleted from function.explode by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-117597@lists.php.net to get a copy of this message | ||
Note Submitter: mswitzer - propagandabydesign - com
----
Just a clarification on matzie's comment. You only need double quotes if you want PHP to parse
what is enclosed in them. A character (i.e. -, |, /) can be in single quotes, but anything php needs
to parse (\n,\r,$var) needs to be in double quotes.
The double quotes tell PHP to parse what is contained, single quotes tell PHP to spit it out as is
without reacting to anything in it.
for instance:
<?php $var = 'Hello'; ?>
The ouput of <?php echo '$var'; ?> is $var.
The ouput of <?php echo "$var"; ?> is Hello.