I don’t want to drive this topic into the ground because as I’ve said before, PHP and Ruby come from completely different directions, but here’s what I miss when I’m writing in PHP:
* Buggy static method inheritance – this is well noted in the PHP community
* Buggy class reflection – also well noted
* Symbols like :this
* Having to specify $this-> all over the place
* $a = array(‘test’=>’true’) instead of $a = {‘test=>’true’}
* $ all over the place
* Not being able to pass hashes into functions
* Blocks
None of these are showstoppers, they’re just little annoyances that make me feel like PHP is more crude than Ruby. Ruby is very elegant, even more so than Python.
Also I miss the wonderful way to extend build in classes like String and Array or Hash without subclassing it.