php settype()和gettype()

gettype()是获得变量的类型,settype()函数用来配置或转换变量类型。成功返回 true 值,其它情形返回 false 值。参数 var 为原来的变量名,参数 type 为下列的类型之一:integer、double、string、array 与 object。

原文地址:https://www.cnblogs.com/liuwenbohhh/p/4352919.html