RE: Should I care about these errors?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Sándor Tamás (HostWare Kft.) [mailto:sandortamas@xxxxxxxxxxx]
> Sent: 05 November 2009 14:00
> To: php-general@xxxxxxxxxxxxx
> Subject: Re:  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@xxxxxxxxxxxxxx 
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

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux