Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Bit worrying that the first code example given in the blog isn't valid PHP.

Strings are concatenated with the . operator, not +.

https://3v4l.org/v9tFN

Or in older PHP versions it would output a number (because it would cast the strings to 0).



But that's an example of something crappy someone would throw together in 1998 and FTP up to their provider of choice.


Shows how long it has been since I've written PHP




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: