RE: [PHP] Should I care about these errors?

From: Date: Thu, 05 Nov 2009 14:45:33 +0000
Subject: RE: [PHP] Should I care about these errors?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-299647@lists.php.net to get a copy of this message
> -----Original Message----- > From: Sándor Tamás (HostWare Kft.) [mailto:sandortamas@hostware.hu] > Sent: 05 November 2009 14:00 > To: php-general@lists.php.net > Subject: Re: [PHP] Should I care about these errors? > > I think, it is better to stick one way, doesn't matter really, which > one. > The difference between single and double quotes partly define which > one > you'd use, but other times it's better to use the same all time. > Speaking about paranthesises, I'd rather use them, because it makes > obvious > that it is a function, and makes it easier to read your code. But echo is not a function, it's a language construct, and the rules are slightly different. Leaving the parentheses out just emphasizes this -- but even with all this, it's still pretty much down to personal preference or house style. Cheers! Mike -- Mike Ford, Electronic Information Developer, Libraries and Learning Innovation, Leeds Metropolitan University, C507, Civic Quarter Campus, Woodhouse Lane, LEEDS,  LS1 3HE,  United Kingdom Email: m.ford@leedsmet.ac.uk Tel: +44 113 812 4730 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm

« previous php.general (#299647) next »