php面試題集-測試題

測試題


$a = 'hello';
$b = &$a;
unset($b);
$b = 'world';
what is $a? // hello

$a = 1;
$x = &$a;
$b = $a++;
what is $b? // 1

var $array = array();
$x = empty($array);
what is $x? true or false // true

$b = 201;
$c = 40;
$a = $b>$c ? 4 : 5;
what is $a? // 4

$str = 'cd';
$$str = 'hotdog';
$$str.= 'ok';
what is $cd? //hotdogok


$a = count("www.hao123.com");
echo $a; 
what's $a?  // 1





發佈了168 篇原創文章 · 獲贊 55 · 訪問量 18萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章