New PHP to Ruby Reference

  • published on March 20th, 2008

    If you look up at the navigation bar, you’ll see we’ve added a new Reference section.

    When you’re starting out with Ruby and Rails, often times you’ll know how to do something in PHP and need a way to map that knowledge into the Ruby world. For example, you might ask yourself, “What’s the equivalent of fopen in Ruby?”

    Now, you can get the answer just like you would on php.net — http://railsforphp.com/fopen

    You can also enter a PHP function name into the search box at the top of every page. If we have a reference page for that function, you’ll be taken directly there.

    PHP and Ruby are great complementary tools. You might find that you like Ruby for other tasks like command line scripts. With this in mind, our reference differentiates between Ruby and Rails. Solutions that only work in Rails, such as the one for http_build_query, are clearly marked as such.

    To start out, we’ve seeded the reference with many of the more common functions for working with strings, regular expressions, and the filesystem. In the coming weeks, we’ll continue to expand it.

2 comments

  • comment by Rick 20 Mar 08

    Wow. I’m the epitome of your target audience — a professional PHP developer for 8 years who’s been experimenting with Ruby and Rails for about 2 months. This site was already helpful, but with this addition it’s going to be downright indispensable. Thank you!

    I haven’t purchased your book, but only because hard-copy programming references have never really been my thing. You should consider adding a PayPal donation link. I’d use it.

  • comment by Pierre 22 Mar 08

    Thank you for your great site. It really helps learning Ruby/Rails if you’re programming PHP ;-)

Post a comment


We welcome your participation but please note we reserve the right to remove any comments that we think are not relevant or do not contribute to the discussion.