Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: The best PHP book for Ruby programmer?
4 points by rugger on Jan 27, 2009 | hide | past | favorite | 3 comments
I need to learn some PHP after several years of serious hacking in Ruby. Of all Ruby books I've read "The Ruby Way" by Hal Fulton was the most practical and fun to follow. For example, while telling you about basic data structures it would also give you a recipe for implementing a sparse matrix or how to use arrays as mathematical sets.

What is the best book that focuses on PHP as a programming language, rather than on building websites?



Not aware of any book that specifically addresses the move from Ruby to PHP, but you may find the reverse helpful: http://www.pragprog.com/titles/ndphpr/rails-for-php-develope...

Of course there's plenty of PHP-specific books. I found one by Wrox to be very helpful: Professional PHP Programming.

PHP syntax is similar to Perl (and/or C) where blocks are delimited by curly brackets, statements by semi-colons and object to method (or attribute) is referenced by two characters vs. Ruby's dot. So in essence, you'll be using that Shift key a lot more.


Heart of Darkness, Joseph Conrad


My opinion: The online documentation. It takes a while to sort through it, but it really is a great resource as are the reader-submitted comments at the end of each page.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: