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


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to