Variable handling 函數(shù)

目錄

  • boolval — 獲取變量的布爾值
  • debug_zval_dump — Dumps a string representation of an internal zval structure to output
  • doubleval — floatval 的別名
  • empty — 檢查一個(gè)變量是否為空
  • floatval — 獲取變量的浮點(diǎn)值
  • get_debug_type — Gets the type name of a variable in a way that is suitable for debugging
  • get_defined_vars — 返回由所有已定義變量所組成的數(shù)組
  • get_resource_id — Returns an integer identifier for the given resource
  • get_resource_type — 返回資源(resource)類型
  • gettype — 獲取變量的類型
  • intval — 獲取變量的整數(shù)值
  • is_array — 檢測(cè)變量是否是數(shù)組
  • is_bool — 檢測(cè)變量是否是布爾值
  • is_callable — 檢測(cè)參數(shù)是否為合法的可調(diào)用結(jié)構(gòu)
  • is_countable — Verify that the contents of a variable is a countable value
  • is_double — is_float 的別名
  • is_float — 檢測(cè)變量是否是浮點(diǎn)型
  • is_int — 檢測(cè)變量是否是整數(shù)
  • is_integer — is_int 的別名
  • is_iterable — Verify that the contents of a variable is an iterable value
  • is_long — is_int 的別名
  • is_null — 檢測(cè)變量是否為 null
  • is_numeric — 檢測(cè)變量是否為數(shù)字或數(shù)字字符串
  • is_object — 檢測(cè)變量是否是一個(gè)對(duì)象
  • is_real — is_float 的別名
  • is_resource — 檢測(cè)變量是否為資源類型
  • is_scalar — 檢測(cè)變量是否是一個(gè)標(biāo)量
  • is_string — 檢測(cè)變量是否是字符串
  • isset — 檢測(cè)變量是否已聲明并且其值不為 null
  • print_r — 以易于理解的格式打印變量。
  • serialize — 產(chǎn)生一個(gè)可存儲(chǔ)的值的表示
  • settype — 設(shè)置變量的類型
  • strval — 獲取變量的字符串值
  • unserialize — 從已存儲(chǔ)的表示中創(chuàng)建 PHP 的值
  • unset — 釋放給定的變量
  • var_dump — 打印變量的相關(guān)信息
  • var_export — 輸出或返回變量的可解析字符串表示