Should I Learn Ruby or PHP?
Ruby has a beautifully simple syntax. It is true OOP and has some truly excellent features, such as arbitrary precision arithmetic. Ruby is so elegant, in fact, that your main concern will be avoiding pompous erudite elitists that apply to work on the project.
PHP is fast. It has a thriving developer community. However, since it has many "features" like weak typing and superglobals, it attracts a lot of beginner-level programmers whose only coding experience is reading PHP for Dummies. You'll find the majority of bonafide computer scientists do not choose to write in PHP.
Let's have a history lesson. PHP now stands for Hypertext Pre-processor, but it was born as a handful of perl scripts called "Personal Homepage Tools". It was completely re-written twice before having major features sloppily jammed into the language. The object-oriented aspects of PHP were an afterthought, including sane error handling with try/catch blocks. Namespaces weren't even available until 5.3 and many developers are still very unhappy about the way it was implemented. In a word, PHP is a perfect example of "feature creep" that results in a generally icky syntax and plenty of bugs.
In contrast, Ruby was the result of a clear and beautiful vision, designed by *a* japanese supergenius. The same core he wrote back in 1997 still represents the bulk of the current language and is capable of everything PHP could muster (after years of *major* overhauls) and more.
PHP has many grammar shortcomings which reveal the clunkiness of its innards. For example, you cannot access an index of an array returned by a function without storing it in a variable. In Ruby this is completely possible (not that it should be done), which is a testament to the completeness of the language.
PHP cannot overload operators. PHP has no built-in regex object or syntax, so there is no easy way to distinguish between regular expressions and strings. PHP only recently added anonymous functions (which is just sad) so it allows strings and arrays to be "callable" (also sad).
PHP does provide a powerful reflection suite. However, you get most of this "for free" in Ruby with `Object::methods` and whatnot. PHP also has cool jam-ins like "Magic Methods" which serve to make code less straightforward and slow everything down. Ruby's design does not require such "features". PHP also has some features that end up necessitating workarounds & headaches for developers because they can be turned off, see Magic Quotes (yes PHP is very "Magical").
People used to argue that Ruby was too slow and not capable of true multithreaded processing, but this is all history since 1.9 uses native threads. Though it's still not as fast as PHP (and JFYI, PHP is really slow compared to any compiled languages like C/C++, D, Haskell, etc).
My recommendation is to use Ruby but avoid the rasinbrain conventions found in the RoR community (e.g. 2-spaces instead of tabs, connecting loosely coupled components via a myriad of data formats, installing 100,000 gems and dependencies for simple apps which make it extremely difficult to debug, using RoR and/or node.js, having holier than thou attitude, etc).
If you want a web framework to get you started, try Sinatra.