News for hackers. Stuff that matters.
Re:What I Like About PHP by califield on Tuesday December 09, 2014 @08:06PM (#8727025)
`f` in your example is a global function that cannot be redefined.
Re:What I Like About PHP by imaginenore on Tuesday December 09, 2014 @08:25PM (#8727124)
Don't like global functions? Don't use them.

It's really that simple.

Re:What I Like About PHP by xyby on Tuesday December 09, 2014 @08:15PM (#8727078)
Which is a good thing. When you have ...

    function f($x) { return $x*$x; }
...in your code, you know that you can always call f() to get the square of something. Hallelujah. Functions as they are meant to be.