Introduction to how to use switch in php language:
$czc="reg";
switch($czc){
case ‘reg’://register
echo "Registered code";
break;//If this sentence is commented out, the following code will be executed, otherwise it will terminate
case ’logout’://Exit
echo "Exit code";
break;
Default://This code except reg and logout executes the following code
include ‘user/info.php’;
break;
}
/*The result of executing this code is displayed:
Registration code
*/
?>