PHP does what most programming languages do. I mean they functionally do all the same things, the ROR framework isn't half bad though, but then again there's many PHP frameworks that copy Rails. The advantage of PHP is it can be done procedural, and OO, and it's straightforward. A intermediate PHP user can do the same as an advanced PHP user using procedural instead of OO, so it's an attractive language.
$aString = is_string((string)array()) ? true : false; // true :D