-
实例分析基于PHP微信网页获取用户信息
[PHP教程] 2021-03-14 23:22:16 57人阅读
很多用户在开发微信版网页的时候,需要获取用户的基本信息,比如国家,省,市,昵称等,我们接下来基于PHP语言基础详细分析一下如何成功获...[详细]
-
PHP substr()函数参数解释及用法讲解
[PHP教程] 2021-03-14 23:22:16 188人阅读
substr(string,start,length) 参数: 1,string 即你要截取的字符串 2,start 即要截取的开始位置(0表示从从前往后数 第一个字符开始,负数表示从从后往前数) eg:start=1,表示从从前往后开始的第二个数开始截取,s...[详细]
-
PHP简单实现二维数组的矩阵转置操作示例
[PHP教程] 2021-03-14 13:34:15 67人阅读
本篇章节讲解PHP简单实现二维数组的矩阵转置操作。供大家参考研究具体如下: '; echo '矩阵转置前: '; for($i=0;$i '; } echo '矩阵转置后: '; for($i=0;$i...[详细]
-
PHP+Apache环境中如何隐藏Apache版本
[PHP教程] 2021-03-14 13:34:15 57人阅读
目前很多服务器共计都是基于软件版本针对性的共计,所以如果服务器安装的是Apache,隐藏它的版本号是非常有必要的,也是能够减少隐患的一个方法,一起来学习一下。 如何隐藏?要隐藏Apache版本号其实方法很简单在,...[详细]
-
PHP实现图的邻接矩阵表示及几种简单遍历算法分
[PHP教程] 2021-03-14 13:33:49 130人阅读
本篇章节讲解PHP实现图的邻接矩阵表示及几种简单遍历算法。供大家参考研究具体如下: 在web开发中图这种数据结构的应用比树要少很多,但在一些业务中也常有出现,下面介绍几种图的寻径算法,并用PHP加以实现. 佛洛依德...[详细]
-
PHP基于curl post实现发送url及相关中文乱码问
[PHP教程] 2021-03-14 13:30:14 66人阅读
本篇章节讲解PHP基于curl post实现发送url及相关中文乱码问题解决方法。供大家参考研究具体如下: 这个问题困扰我几天了,发送的指定网址的url参数,中文总是乱码,指定网址是utf8编码的,我发送的也是utf8编码的。...[详细]
-
php图片合成方法(多张图片合成一张)
[PHP教程] 2021-03-14 13:30:14 159人阅读
1.多张图片合成一张比如: 图片合成,可以显示在浏览器上面同时保存到文件夹下面 实例如下所示: $pic_list = array( 'img2.png','img2.png','logo.png','img2.png' ); $pic_list = array_slice($pic_list,9); // 只...[详细]
-
php之header的不同用法总结(实例讲解)
[PHP教程] 2021-03-14 13:17:15 71人阅读
注意:必须在任何实际的输出被发送之前调用 header() 函数。 2、 用法1:跳转页面 用法2: 声明content-type(我经常拿来决解乱码) 用法3: 返回响应状态码 用法4: 执行下载操作(隐藏文件的位置) 用法5: 控制浏...[详细]
-
PHP 7.1中利用OpenSSL代替Mcrypt加解密的方法详
[PHP教程] 2021-03-14 13:17:15 88人阅读
概要: php7.1发布后新特性吸引了不少PHPer,大家都在讨论新特性带来的好处与便利。但是从php7.0 升级到 php7.1 废弃(过时)了一个在过去普遍应用的扩展(mcrypt扩展)。官方提供了相应的解决提示,却没有提供更详细的...[详细]
-
php实现签到功能的方法实例分析
[PHP教程] 2021-03-14 13:17:15 127人阅读
本篇章节讲解php实现签到功能的方法。供大家参考研究具体如下: 首先我在数据库里建了两张表,一个是用户的积分表,一个是签到状态表,分来用来记录用户的积分数和先到状态 在用户签到状态表中我们有一个字段,last_sign...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]