useful php tip
Wednesday, August 20th, 2008Just in case you ever need it, here’s useful tip for php. If you get the following error:
syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM
it means you have a double colon somewhere.
PHP is the biggest clusterfuck of a popular language I’ve ever seen.
—————————-
Oh, it gets better. PHP comments can start with “//”, but it doesn’t always work. This:
is a comment that will cause a parse error. It’s been reported as a bug and apparently the php team has decided that it’s not a bug. HTML tags in comments are still interpreted as HTML. Yeah good idea.