I have to say it reminds me more of perl than PHP. Granted, PHP reminds me of perl, but not in the same way (more C'ish than perl IMO).
I wouldn't buy a book honestly. Ruby never did seem to make the big hit like it hype had suggested it would at least in the web world, but if you have the extra time I'd look into some sites that specialize in ruby. You can never go wrong with learning a new language thats for sure.
header('HTTP/1.1 420 Enhance Your Calm');