Double quotes expand variables, that is, if $a = 2, then
echo "The value is $a2";
will print "The value is 2".
Single quotes return strings literally. So, echo 'The value is $a2'
would print The value is $a2
Cheers
rory walsh wrote:
Can anyone tell me if there is a difference between double quote
You might want to check this out as well:
http://www.zend.com/zend/tut/using-strings.php
rory walsh wrote:
Can anyone tell me if there is a difference between double quotes and
single quotes? Cheers,
Rory.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
Mark Sargent wrote:
Hi All,
with the below code, $myrow[1] should = product_name's value,
$myrow[2] should = product_model_number's value and $myrow[3] should =
product_serial_number's value, but, product_name's value is not being
displayed, and the values are being moved to the left 1. Meaning
You are using html entity code for brackets and such. When you use <
instead of <, the web browser prints it literally as a < rather than
interpreting it as an html symbol to mark the start of an anchor (or
whatever). Replace the entity code with their 'regular' equivalents and
you're print pr
4 matches
Mail list logo