Ruby Code Snippet
In Ruby a switch statement looks like this
say = "Hello"
case say
when "Hello" then
puts "Say Hello"
when "Bye" then
puts "Say Bye"
end
In PHP a switch statement looks like this
In Ruby a switch statement looks like this
say = "Hello"
case say
when "Hello" then
puts "Say Hello"
when "Bye" then
puts "Say Bye"
end
In PHP a switch statement looks like this
|
|
|
Recent Listened to TracksPark - Codex Avellum on Jan 3, 2009 - 11:54:38 PM Allister - Waiting on Jan 3, 2009 - 11:50:26 PM Propagandhi - I Want U 2 Want Me on Jan 3, 2009 - 11:47:05 PM Alkaline Trio - My Friend Peter on Jan 3, 2009 - 11:44:16 PM The All-American Rejects - Swing, Swing on Jan 3, 2009 - 11:42:01 PM
|
Bad Behavior has blocked 204 access attempts in the last 7 days.