thinkphp函数学习(2)——microtime, memory_get_usage, dirname, strtolower, is_file
2015-01-15 19:19
260 查看
1. microtime()
返回 微秒 秒 这种格式的内容
例子
2. memory_get_usage
返回PHP消耗的内存,单位是 byte 字节
3. dirname
返回使用这个函数的页面所在的文件夹路径,最后没有斜杠
dirname(__FILE__) // 输出:D:\www
4. strtolower 字面意思
5. is_file
判断是否是文件,文件true, 文件夹false
返回 微秒 秒 这种格式的内容
例子
<?php echo(microtime()); ?> 输出: 0.25139300 1138197510 // 前面是微秒部分,但是单位是秒。 后面是秒
2. memory_get_usage
返回PHP消耗的内存,单位是 byte 字节
3. dirname
返回使用这个函数的页面所在的文件夹路径,最后没有斜杠
dirname(__FILE__) // 输出:D:\www
4. strtolower 字面意思
5. is_file
判断是否是文件,文件true, 文件夹false
相关文章推荐
- PHP管理内存函数 memory_get_usage()使用介绍
- 检测使用内存memory_get_usage,执行时间microtime
- thinkphp函数学习(1)——header, get_magic_quotes_gpc, array_map, stripslashes, stripslashes_deep
- PHP管理内存函数 memory_get_usage()使用介绍
- 学习thinkPHP 笔记(1)————————数据库操作 自写函数getbaseWhere() 和 where等操作
- memory_get_usage() 获取内存消耗的函数
- ThinkPHP源码学习---is_ssl() 函数 判断是否SSL协议
- PHP文件操作,多行句子的读取,file()函数,file_get_contents()函数,file_put_contents()函数,is_file,统计网站pv (访问量),文件的复制 copy
- Cacti 'Linux - Get Memory Usage' Remote Command Execution Vulnerability
- GetModuleFileName()函数的返回值来获取当前的工作路径
- Prototype学习——工具函数($H,$R,Try.these,document.getElementsByClassName)
- 读取二代身份证上的相片,函数GetBmp(char * Wlt_File,int intf) 怎么用?
- Windows文件处理函数 - GetFileTime
- jQuery1.3.2 源码学习-6 size 和 get 函数
- GetCurrentDirectory()和GetModuleFileName()函数的区别
- PHP 常量 dirname(__file__) 学习
- GetCurrentDirectory()和GetModuleFileName()函数的区别
- is_uploaded_file函数引发的问题
- [Oracle Troubleshooting] Get Oracle Bounces When Data File Is Missing
- GDI+ / PNG 实现半透明窗口,正常情况下没有问题 将系统设置为16位色后UpdateLayeredWindow函数失败,GetLastError返回8(ERROR_NOT_ENOUGH_MEMORY)