Re: Session: I RTFM
| From: | michael kimsal | Date: | Sun, 15 Dec 2002 14:51:09 +0000 |
| Subject: | Re: Session: I RTFM | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128325@lists.php.net to get a copy of this message | ||
Marco Tabini wrote:
Single quotes are normal strings. Double quotes are strings in which substitutions can take place. For example: <?php $a = 'test'; echo '$a'; // outputs $a echo "$a"; // outputs test ?> Double quotes also expand escape strings (e.g."\n") whereas single quotes don't.However, in a case like this: -------------- What is the difference between: $familyname = getvar("familyname"); and $familyname = getvar('familyname'); -------------- There's no effective difference. :) Good magazine Marco - keep it up! Michael Kimsal http://www.phpappserver.com 734-480-9961