分享

Variable handling Functions

 离魂异客 2012-09-26

is_bool — Finds out whether a variable is a boolean

is_int — Find whether the type of a variable is integer

is_integer — Alias of is_int()

is_long — Alias of is_int()

is_float — Finds whether the type of a variable is float

is_double — Alias of is_float()

is_real — Alias of is_float()

is_string — Find whether the type of a variable is string

is_array — Finds whether a variable is an array

is_object — Finds whether a variable is an object

is_resource — Finds whether a variable is a resource

is_null — Finds whether a variable is NULL

is_numeric — Finds whether a variable is a number or a numeric string

is_scalar — Finds whether a variable is a scalar

is_callable — Verify that the contents of a variable can be called as a function

intval — Get the integer value of a variable

floatval — Get float value of a variable

doubleval — Alias of floatval()

strval — Get string value of a variable

empty — Determine whether a variable is empty

isset — Determine if a variable is set and is not NULL

unset — Unset a given variable

print_r — Prints human-readable information about a variable

var_dump — Dumps information about a variable

var_export — Outputs or returns a parsable string representation of a variable

gettype — Get the type of a variable

settype — Set the type of a variable

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多