Mega Code Archive
Categories
/
Php
/
Strings
String compare with if statement
Decisions
"); } 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; } ?>