php语言中switch的用法
php语言中switch的用法介绍:
$czc="reg";
switch($czc){
case ’reg’://注册
echo "注册的代码";
break;//如果注释掉此句,将执行下在的代码,否则终止
case ’logout’://退出
echo "退出的代码";
break;
default://此代码 除了reg,logout外其它的都是执行以下面的代码
include ’user/info.php’;
break;
}
/*此代码执行的结果显示:
注册的代码
*/
?>

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Zend Studio 13.0.1
Powerful PHP integrated development environment

SublimeText3 English version
Recommended: Win version, supports code prompts!

Notepad++7.3.1
Easy-to-use and free code editor