下面列出一些ASP常用函数和对应的在PHP中函数,希望能够给从ASP转为PHP开发的人员地帮助。
asp(vbs)常用函数30个 | PHP类似函数 |
trim( ) | trim( ) |
replace( ) | str_replace( ) // str_ireplace( ) |
split( ) | explode( ) |
ubound( ) | count( ) |
isNull( ) | is_null( ) empty( ) 0,””,Null,False,空属性对象都将返回false |
isEmpty( ) | empty( ) 同上 isset( ) 是否已初始化 |
isNumeric( ) | is_numeric( ) |
instr( ) instrRev( ) | strpos( ) // stripos( ) strrpos( ) // strripos( ) |
mid( ) | substr( ) |
left( ) right( ) | 无对应函数 |
len( ) |
上一篇 php内存限制(memory_limit)修改的方法 上一篇 PHP网站UTF-8编码中文乱码解决办法 本方链接: http://www.web258.cn/article/show/i1398.html
ARTICLE 相关推荐
|