1. <tt id="5hhch"><source id="5hhch"></source></tt>
    1. <xmp id="5hhch"></xmp>

  2. <xmp id="5hhch"><rt id="5hhch"></rt></xmp>

    <rp id="5hhch"></rp>
        <dfn id="5hhch"></dfn>

      1. PHP筆試題

        時間:2020-11-25 09:20:24 筆試題目 我要投稿

        PHP筆試題

          1. 寫出如下程序的輸出結果

        PHP筆試題

          $str1 = null;

          $str2 = false;

          echo $str1==$str2 ? ‘相等’ : ‘不相等’;

          //相等

          $str3 = ”;

          $str4 = 0;

          echo $str3==$str4 ? ‘相等’ : ‘不相等’;

          //相等

          $str5 = 0;

          $str6 = ’0′;

          echo $str5===$str6 ? ‘相等’ : ‘不相等’;

          //不相等

          ?>

          2. 寫出如下程序的'輸出結果

          $a1 = null;

          $a2 = false;

          $a3 = 0;

          $a4 = ”;

          $a5 = ’0′;

          $a6 = ‘null’;

          $a7 = array();

          $a8 = array(array());

          echo empty($a1) ? ‘true’ : ‘false’;//true

          echo empty($a2) ? ‘true’ : ‘false’;//true

          echo empty($a3) ? ‘true’ : ‘false’;//true

          echo empty($a4) ? ‘true’ : ‘false’;//true

          echo empty($a5) ? ‘true’ : ‘false’;//true

          echo empty($a6) ? ‘true’ : ‘false’;//false

          echo empty($a7) ? ‘true’ : ‘false’;//true

          echo empty($a8) ? ‘true’ : ‘false’;//false

          ?>

          3. 寫出如下程序的輸出結果

          $test = ‘aaaaaa’;

          $abc = & $test;

          unset($test);

          echo $abc;//’aaaaaa’

          ?>

          4. 寫出如下程序的輸出結果

          function get_count(){

          static $count = 0;

          return $count++;

          }

          echo $count; //5

          ++$count;

          echo get_count();//0

          echo get_count();//1

          ?>

          5. 寫出如下程序的輸出結果

          $GLOBALS['var1'] = 5;

          $var2 = 1;

          function get_value(){

          global $var2;

          $var1 = 0;

          return $var2++;

          }

          get_value();

          echo $var1; //0

          echo $var2; //2

          ?>

          6. 寫出如下程序的輸出結果

          function get_arr($arr){

          unset($arr[0]);

          }

          $arr1 = array(1, 2);

          $arr2 = array(1, 2);

          get_arr(&$arr1);

          get_arr($arr2);

          echo count($arr1);//1

          echo count($arr2);//2

          ?>

        【PHP筆試題】相關文章:

        經典PHP筆試題12-15

        幾道PHP筆試題01-03

        PHP經典筆試題01-01

        php練習筆試題07-24

        PHP面試題集01-03

        PHP筆試題含答案01-01

        PHP筆試題及答案01-01

        Yahoo-PHP筆試題01-01

        360筆試題目07-11

        国产高潮无套免费视频_久久九九兔免费精品6_99精品热6080YY久久_国产91久久久久久无码

        1. <tt id="5hhch"><source id="5hhch"></source></tt>
          1. <xmp id="5hhch"></xmp>

        2. <xmp id="5hhch"><rt id="5hhch"></rt></xmp>

          <rp id="5hhch"></rp>
              <dfn id="5hhch"></dfn>