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
|