Re: Newbie question: qutoes?

From: Date: Sun, 06 Mar 2005 18:39:07 +0000
Subject: Re: Newbie question: qutoes?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-210102@lists.php.net to get a copy of this message
rory walsh wrote:
Can anyone tell me if there is a difference between double quotes and single quotes? Cheers, Rory.
What's up Rory... actually there *is* a difference. Double quotes are parsed by the php engine, meaning it goes through and finds variables and stuff which it can parse, ex. print("Here is a variable: $variable!"); will print "Here is a variable: The value of the variable!" Single quotes are not parsed by the php engine, so the same code with single quotes (print('Here is a variable: $variable!'); will return "Here is a variable: $variable!" I hope that answeres your question

« previous php.general (#210102) next »