I am completely with Ted Dzuiba when he says that PHP is not that bad. There have been a lot of comparisons between PHP and Ruby or for some reason with Ruby on Rails. You do have CakePHP if you like RoR‘s idea.!
PHP is the wealthiest in terms of off-the-shelf libraries or components or CMSs available. This can not only reduce cost of development but also provide higher value by reducing time and effort and delivering on time. PHP5 now supports OOP better inherently. It is also extensible through C. PHP does not impose anything, which can make it easy for bad programmers to write bad code. Don’t misplace the blame!
So, why am I learning Ruby? If I have to create a framework from scratch I will choose Ruby over PHP. Ruby is more intuitive for creating leaner and cleaner code because of some functional programming features and has facilities for easier metaprogramming. But from a project perspective, PHP will always be one of the primary candidates.