PHP手册-类型
来源:互联网 发布:pl sql develop 编辑:程序博客网 时间:2024/05/16 12:56
如果只是想得到一个易读懂的类型的表达方式用于调试,用 gettype()。要查看某个类型,不要用 gettype(),而用 is_type 函数。以下是一些范例:
$a_bool = TRUE; // a boolean$a_str = "foo"; // a string$a_str2 = 'foo'; // a string$an_int = 12; // an integerecho gettype($a_bool); // prints out: booleanecho gettype($a_str); // prints out: string// If this is an integer, increment it by fourif (is_int($an_int)) { $an_int += 4;}// If $bool is a string, print it out// (does not print out anything)if (is_string($a_bool)) { echo "String: $a_bool";}
- PHP手册-类型
- php手册-类型转换
- php手册-类型比较表
- php手册 笔记 类型 -- 布尔类型
- php手册 笔记 类型 -- 整数类型
- php手册 笔记 类型 -- 字符串类型
- php手册 笔记 类型 -- 数组类型
- php手册 笔记 类型 -- 浮点型
- php手册之Callback 回调类型
- php手册之类型转换的判别
- php手册
- PHP手册
- php手册
- PHP手册
- php手册
- PHP手册
- php手册
- php手册
- MongoDB学习整理之更新
- 亲身实践,JAVA最优良的Adapter模式--适配器模式
- C中的auto、static、register、extern、const和volitate
- Javascript获取Html界面元素的几种方法
- MongoDB学习整理之查询
- PHP手册-类型
- easyUI ComboGrid
- 解析度 DPI
- Linux服务器与JAVA客户端(android)的socket通信
- linux中的环境变量
- MFC全屏
- MongoDB CRUD操作简析
- TCP建立连接时的三次握手和断开连接时的四次握手
- alter system switch logfile和alter system archive log current的区别