Hi,
the $ sign inside single quotes is just a dollar sign. When you place it
inside double quotes it's the start of a variable name.
This is because what is inside single quotes are unparsed while whats
inside double quotes are parsed. For this reasong if you are having to
print out lengthy
Read this article:
http://www.zend.com/zend/tut/using-strings.php
-Original Message-
From: micro brew [mailto:[EMAIL PROTECTED]
Sent: Monday, September 08, 2003 9:04 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Single Quotes vs Double Quotes
Hi everyone,
Could somebody please explain
Hi everyone,
Could somebody please explain to me the difference
between single quotes and double quotes in PHP. It
seems like they can be used interchangeably a lot in
PHP but not always. For example:
This works:
header('Location: http://somedomain.com')
This does not work:
header('Location:
Hi,
Tuesday, September 9, 2003, 2:03:34 PM, you wrote:
mb Hi everyone,
mb Could somebody please explain to me the difference
mb between single quotes and double quotes in PHP. It
mb seems like they can be used interchangeably a lot in
mb PHP but not always. For example:
mb This works:
mb
--- micro brew [EMAIL PROTECTED] wrote:
Could somebody please explain to me the difference
between single quotes and double quotes in PHP.
Strings within single quotes are not evaluated. String within double quotes
are. Try this example:
?
$foo = 'bar';
echo '$foo';
echo $foo;
echo $foo;
Try this: http://www.faqts.com/knowledge_base/view.phtml/aid/208
- Original Message -
From: micro brew [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 12:03 AM
Subject: [PHP] Single Quotes vs Double Quotes
Hi everyone,
Could somebody please explain to me
6 matches
Mail list logo