Top 10 12 Reasons why Javascript is Better than PHP
Functions that return objects can be treated like objects. document.getElementsByTagName(’ul’)[0].innerHMTL works the same as var ul=document.getElementsByTagName(’ul’); ul=ul[0]; ul.innerHTML;. But, for some silly reason, $xml->xpath(’//ul’)[0]->asXml() throws a bunch of errors.
Dots are prettier than arrows.
It runs on someone else’s machine.
It has a lisp. (All Hail the Mighty λ!)
Only functions cause scope. (Oh, the […]
Read the rest of Top 10 12 Reasons why Javascript is Better than PHP »
Listen