PDA

View Full Version : PHP ()'s



lucifer
July 6th, 2001, 04:24
when I write my php I always do

include "mypage";
echo "hello mum";

other's will do

include ("mypage");
echo ("hello mum");

does adding the () make any noticable difference or is it as I imagine a matter of aesthetics

Lord MJ
July 6th, 2001, 18:16
the () is proper coding syntax.

All function calls except perhaps print, or maybe echo,

should have () as a matter of decent coding practice.