-
php如何写字符串和16进制的转换?
[PHP教程] 2022-02-21 15:51:22 58人阅读
我们在日常的计算机编程和学习中,往往会遇到进制转换,所谓进制转化,简单的理解就是将一种进制的数字转换为另一种进制的数字。这篇文章就给大家分享一下PHP字符串和十六进制的互相转换,通常我们在调用别网站接口...[详细]
-
php如何在线人数统计和用户IP数?
[PHP教程] 2022-02-21 15:50:55 143人阅读
我们在访问一些网站的时候,常常会看到在线人数是多少。其实通过统计用户IP数以及在线人数,不仅能够帮助管理人员了解用户的访问和使用情况,而且展示网站在线人数,在某种程度上能够给用户一种认同感。那么PHP是如...[详细]
-
php操作redis命令介绍和代码详解
[PHP教程] 2022-02-21 15:50:29 198人阅读
Redis是一种支持key-value等多种数据结构的存储系统,能够用于缓存,时间发布或者订阅等等。现在有很多大型网站会运用redis缓存,这能够明显提高网站速度。这篇文章就主要给大家介绍PHP操作Redis命令,感兴趣的朋友...[详细]
-
在PHP函数如何运行Linux系统代码?这六个函数要
[PHP教程] 2022-02-21 15:50:09 187人阅读
在开发过程中,有时候我们会需要在PHP函数在运行Linux系统代码,那么我们就会使用到这些函数,shell_exec函数,exec函数,system函数,passthru函数,popen函数,proc_open函数。下面我们就来详细了解下PHP执行linux...[详细]
-
教你运用PHP做一个简易的登录系统
[PHP教程] 2022-02-21 15:49:44 175人阅读
注册登录是我们日常上网时最常用的操作,因此这篇文章就主要给大家分享如何用PHP实现一个简易的用户登录系统。感兴趣的朋友就继续往下看吧。 直接上代码 连接数据库:connect.php ?php $servername = localhost; $us...[详细]
-
PHP连接MySQL三种方法,你知道几个?
[PHP教程] 2022-02-21 15:49:15 108人阅读
PHP连接MySQL数据库的操作是新手学习PHP一定要掌握的技能,这篇文章就给大家分享三个PHP连接MySQL数据库的方法,分别是面向过程方法,面向对象方法和PDO方法,对正在学习PHP的同学有一定的参考价值。 方法一:普通方...[详细]
-
PHP限制发送手机验证码的次数实例
[PHP教程] 2022-02-21 15:48:16 193人阅读
现在很多网站和软件的注册都会让用户填写电话号码,之后系统会向用户手机发送一条短信验证码,用户输入验证码之后就能正常使用了,而且还能使用短信验证码进行快捷登录。但是为了防机刷验证码,我们需要限制发送手机...[详细]
-
PHP正则表达式验证电话号码与邮箱的实例
[PHP教程] 2022-02-21 15:47:14 95人阅读
PHP正则表达式是一种描述字符串结构的语法规则,是一个特点的格式化模式,能够匹配,替换和街区匹配的字符串。一般PHP正则表达式会用作判断手机号码写法和邮箱写法是否正确,这篇文章也就给大家分享PHP的手机号码和...[详细]
-
php如何加快对百万级数据的导出
[PHP教程] 2022-02-21 15:46:31 71人阅读
很多朋友想要知道PHP怎么样快速导出百万级数据到CSV或者EXCEL文件中,因此,这篇文章就给大家分享一下php百万级数据导出的操作,下面是导出思路,导出源码以及测试,有需要的朋友可以看一下,希望大家有收获。 很多...[详细]
-
php如何对数据库备份和恢复,一文搞懂操作流程
[PHP教程] 2022-02-21 15:46:03 104人阅读
php如何实现数据库的备份和恢复?很多新手对此不是很了解,因此下面给大家分享一下php数据库的备份与恢复,有这方面学习的需求的朋友可以看一下,希望对大家学习有帮助。 数据库备份 mysql -uroot -p mydb:\db.txt ...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]