Chaitanya Lakshmi
  • About Me
  • Job Duties
  • Knowledge Blog
  • Applications
  • Contact Us
    • Linked In
    • Facebook
  • About Me
  • Job Duties
  • Knowledge Blog
  • Applications
  • Contact Us
    • Linked In
    • Facebook

Which language construct can best represent the following series of if conditionals?

2/27/2012

0 Comments

 
<?php
if($a == 'a') {
    somefunction();
} else if ($a == 'b') {
   anotherfunction();
} else if ($a == 'c') {
   dosomething();
} else {
   donothing();
}
?>


  • A switch statement without a default case
  • A recursive function call
  • A while statement
  • It is the only representation of this logic
  • A switch statement using a default case
  • I don’t know
Answer:
A switch statement using a default case

0 Comments



Leave a Reply.

    Author

    Write something about yourself. No need to be fancy, just an overview.

    Archives

    February 2012

    Categories

    All
    General
    Krds
    Phponweb

    RSS Feed

Powered by Create your own unique website with customizable templates.