+ -
当前位置:首页 → 问答吧 → $act = !empty($_GET['act']) ? $_GET['act'] : 'default';

$act = !empty($_GET['act']) ? $_GET['act'] : 'default';

时间:2010-10-06

来源:互联网

$act = !empty($_GET['act']) ? $_GET['act'] : 'default';

请问这句是什么意思?

作者: kavin_wei   发布时间: 2010-10-06

if(!empty($_GET['act'])){
$act =$_GET['act'];
}else{
$act = 'default';
}
一條簡單的三目運算

作者: vidon   发布时间: 2010-10-06