Richard Davey wrote:
include "$dir/file.php"

vs.

include("$dir/file.php")

Both work just fine. The manual includes examples of both methods. So
which do most people consider "the right way" ?

If you use echo, then you should use include(). If you use print, then you should use include " ". Unless you use echo(), then you should use include" " and if you use print " ", then you should use include(). Unless you don't want to. :)

Like someone else said: Personal preference. There's no right or wrong.

--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

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



Reply via email to