Skip to content

Instantly share code, notes, and snippets.

@wotupset
Created March 10, 2014 17:01
Show Gist options
  • Save wotupset/9469132 to your computer and use it in GitHub Desktop.
Save wotupset/9469132 to your computer and use it in GitHub Desktop.
php中的雙驚嘆號測試
<?php
/*
結果﹔
是否是
*/
$a=10;
if($a){
echo "是";
}else{
echo "否";
}
if(!$a){
echo "是";
}else{
echo "否";
}
if(!!$a){
echo "是";
}else{
echo "否";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment