Strings Php



Decisions


     $str_ctrl_flow = "go";
   
     if(!strcmp($str_ctrl_flow, "go")) {
          print("string is \"go\"");
     } else {
          print("Time to stop");
          exit;
     }
   
     $str_ctrl_flow = "stop";
   
     if(!strcmp($str_ctrl_flow, "go")) {
          print("string is \"go\"");
     } else {
          print("Time to stop");
          exit;
     }
?>