PHP有沒有is_type()函數?該如何解決

來源:互聯網
上載者:User
PHP有沒有is_type()函數?
http://docs.php.net/manual/zh/language.types.intro.php

如果只是想得到一個易讀懂的類型的表達方式用於調試,用 gettype() 函數。要查看某個類型,不要用 gettype(),而用 is_type 函數。

問題:
1.PHP手冊,有is_type( )函數嗎?

分享到:


------解決方案--------------------

is_array -- 檢測變數是否是數組
is_bool -- 檢測變數是否是布爾型
is_callable -- 檢測參數是否為合法的可調用結構
is_double -- is_float() 的別名
is_float -- 檢測變數是否是浮點型
is_int -- 檢測變數是否是整數
is_integer -- is_int() 的別名
is_long -- is_int() 的別名
is_null -- 檢測變數是否為 NULL
is_numeric -- 檢測變數是否為數字或數字字串
is_object -- 檢測變數是否是一個對象
is_real -- is_float() 的別名
is_resource -- 檢測變數是否為資源類型
is_scalar -- 檢測變數是否是一個標量
is_string -- 檢測變數是否是字串
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.