摘要:
PHP中的函数-- foreach()的用法详解_php技巧_脚本之家 https://www.jb51.net/article/38956.htm PHP 4 引入了 foreach 结构,和 Perl 以及其他语言很像。这只是一种遍历数组简便方法。foreach 仅能用于数组,当试图将其用于其它 阅读全文
posted @ 2022-08-28 20:56
ingemar,fang
阅读(312)
评论(0)
推荐(0)
摘要:
php for 循环语句使用方法详细说明_php基础_脚本之家 https://www.jb51.net/article/23369.htm for循环只是一个多一点的代码,同时循环添加到它。而所涉及的一个循环的共同任务是:设置一些计数器变量的初始值。请检查条件语句是正确的。执行中的代码循环。增量在 阅读全文
posted @ 2022-08-28 20:56
ingemar,fang
阅读(401)
评论(0)
推荐(0)
摘要:
PHP isset()与empty()的使用区别详解_php基础_脚本之家 https://www.jb51.net/article/24666.htm PHP的isset()函数 一般用来检测变量是否设置格式:bool isset ( mixed var [, mixed var [, ...]] 阅读全文
posted @ 2022-08-28 20:55
ingemar,fang
阅读(192)
评论(0)
推荐(0)
摘要:
php解析html类库simple_html_dom(详细介绍)_php技巧_脚本之家 https://www.jb51.net/article/39526.htm 下载地址:https://github.com/samacs/simple_html_dom解析器不仅仅只是帮助我们验证html文档; 阅读全文
posted @ 2022-08-28 20:53
ingemar,fang
阅读(905)
评论(0)
推荐(0)
摘要:
php array_flip() 删除数组重复元素_php技巧_脚本之家 https://www.jb51.net/article/17104.htm 方法如下:$arr = array(…………) ;//假设有一万个元素的数组,里面有重复的元素。$arr = array_flip(array_fl 阅读全文
posted @ 2022-08-28 20:46
ingemar,fang
阅读(99)
评论(0)
推荐(0)
摘要:
PHP通过iconv将字符串从GBK转换为UTF8字符集_php技巧_脚本之家 https://www.jb51.net/article/27743.htm 1. iconv()介绍iconv函数可以将一种已知的字符集文件转换成另一种已知的字符集文件。例如:从GB2312转换为UTF-8。iconv 阅读全文
posted @ 2022-08-28 20:45
ingemar,fang
阅读(347)
评论(0)
推荐(0)
摘要:
PHP 中的 9 个魔术方法 - OSCHINA - 中文开源技术交流社区 https://www.oschina.net/translate/9-magic-methods-in-php 这个标题有点牵强因为php有不只9种魔术方法, 但是这些将会引导你使用php魔术方法一个好的开始。它可能魔幻, 阅读全文
posted @ 2022-08-28 20:41
ingemar,fang
阅读(37)
评论(0)
推荐(0)
摘要:
PHP 重载方法 __call()_PHP基础教程 - 我爱开发网 http://www.5idev.com/p-php_method_overloading.shtml __call() 方法用于监视错误的方法调用。 __call()(Method overloading) 为了避免当调用的方法不 阅读全文
posted @ 2022-08-28 20:40
ingemar,fang
阅读(42)
评论(0)
推荐(0)
摘要:
[TP笔记]ThinkPHP自定义错误页面、成功页面及异常页面 | Specs' Blog-就爱PHP https://9iphp.com/opensystem/thinkphp/999.html 看了前面分享的一篇《什么是真正的程序员?》,觉得自己离这个目标还差的很远,所以要抓紧朝着这个方向前进。 阅读全文
posted @ 2022-08-28 20:38
ingemar,fang
阅读(920)
评论(0)
推荐(0)
摘要:
PHP array_unique() 函数 https://www.w3school.com.cn/php/func_array_unique.asp 实例 移除数组中重复的值: <?php $a=array("a"=>"red","b"=>"green","c"=>"red"); print_r( 阅读全文
posted @ 2022-08-28 20:33
ingemar,fang
阅读(34)
评论(0)
推荐(0)

浙公网安备 33010602011771号
