Re: What is the difference: include()

From: Date: Mon, 17 Mar 2003 19:05:06 +0000
Subject: Re: What is the difference: include()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-140002@lists.php.net to get a copy of this message
----- Original Message ----- From: "Charles Kline" <ckline@rightcode.net> To: <php-general@lists.php.net> Sent: Monday, March 17, 2003 11:57 AM Subject: [PHP] What is the difference: include() > What is the difference as in... why one or the other? > > include('somefile.php'); > > include("somefile.php"); > > Just wondering... > > - ck There is no difference in functionality of your example. Single quotes assumes a litteral string. Double quotes assumes variables within the string are parsed. In other words: $myvar = 'foo'; echo '$myvar bar'; // prints "$myvar bar" echo "$myvar bar"; // prints "foo bar" HTH, Kevin

« previous php.general (#140002) next »