«« Next » « Previous
«« Next » « Previous

Link Details

Link 38565 thumbnail
User 217101 avatar

By gst
via refreshinglyblue.com
Published: Sep 02 2007 / 06:51

There are rather significant syntactical differences between PHP and Ruby. For example PHP requires semicolons at the end of lines and generally requires curly brackets to enclose blocks of code. Ruby, on the other hand, uses newline characters to denote the end of a line of code and many code constructs such as function definitions, and various loops are ended with the word “end” rather than being surrounded by curly braces. Below is an example of PHP vs Ruby syntax.
  • 9
  • 2
  • 1918
  • 855

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (9)



Voters Against This Link (2)