Re: What is the difference: include()

From: Date: Mon, 17 Mar 2003 19:16:33 +0000
Subject: Re: What is the difference: include()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-140009@lists.php.net to get a copy of this message
Charles Kline wrote:
What is the difference as in... why one or the other? include('somefile.php'); include("somefile.php"); Just wondering...
If you had a constant named "somefile" or "php" and you use the second syntax, the constant would be interpolated/evaluated to the value of the constant. Generally I always use single quoted strings unless there's some need for double-quoted strings (like if I want to embed a variable) so something like this can't happen. Also good idea to only use capital letters for constants. Erik

« previous php.general (#140009) next »