-
PHP strtotime和mktime:mktime 函数
[PHP教程] 2021-06-02 04:35:30 70人阅读
运行结果如下: 当前的时间戳是:1585273874 使用now获取当前的时间戳:1585273874 2000-09-10 的时间戳是:968515200 在当前的时间戳上加一天:1585360274 在当...[详细]
-
PHP落地倒计时功能
[PHP教程] 2021-06-02 04:35:04 85人阅读
【示例】下面我们通过一段简单的代码为大家演示一下,如何使用 PHP 实现倒计时功能。 纯文本 复制 ! DOCTYPE html html head title PHP实现倒计时功能 / title /...[详细]
-
PHP面向对象归纳
[PHP教程] 2021-06-02 04:33:32 93人阅读
什么是面向对象编程 面向对象编程(Object-Oriented Programming,OOP)是一种编程思想,起源于 20 世纪 60 年代,直到 20 世纪 90 年代才成为应用软件开发的主...[详细]
-
分析PHP class:定义类
[PHP教程] 2021-06-02 04:33:04 130人阅读
初步使用面向对象程序设计,要掌握的就是使用面向对象的思想抽象出一个类,这是一种思想的转化,难点也就在这里。而这些思想体现在程序中就是代码。在这里,要写...[详细]
-
在PHP中构造函数/技巧
[PHP教程] 2021-06-02 04:31:22 68人阅读
在 PHP3.0 和 PHP4.0 中,构造函数是一个与其所在类同名的函数。而在 PHP5 中,虽然也支持 PHP3.0 和 PHP4.0 中的用法,但是更推荐使用 __construct 作为类的构...[详细]
-
PHP总结,PHP是什么?
[PHP教程] 2021-06-02 04:30:52 152人阅读
由于勒多夫写的这个小程序轻巧且简便,吸引了很多人的关注,1995 年,勒多夫发布了 PHP/FI 2.0 版本,该版本不仅可以做到访问数据库,还能嵌入到 HTML 中动态处...[详细]
-
PHP语言的独特之处
[PHP教程] 2021-06-02 04:30:22 179人阅读
下面介绍一下PHP语言的几点优势。 学习成本低 PHP 学习入门快、开发成本低,语法相对简单,并且提供了丰富的类库,如用于图像处理的 GD 库、各种加密扩展(如 Op...[详细]
-
静态网页与动态网页之间的联系
[PHP教程] 2021-06-01 20:33:31 84人阅读
静态网页有以下特点: 静态网页不能自动更新,若要对静态页面进行更新,就要重新编写 HTML 源文件,然后再上传。因此静态网页的制作和维护工作量相当大。 静态网...[详细]
-
PHP7有哪些特点?做了哪些更变?
[PHP教程] 2021-06-01 20:33:03 192人阅读
PHP 7 引入了严格模式开关 PHP 是一个弱类型的语言,不过在 PHP 7 中支持变量类型的定义,引入了一个开关指令 declare(strict_type=1); 。这个指令一旦开启,就...[详细]
-
爱不释手的PHP编辑器有哪些?
[PHP教程] 2021-06-01 20:29:50 149人阅读
Sublime Text(推荐) Sublime Text 是一款目前非常流行的代码编辑器,它同时支持 Linux、Windows 和 Mac OS 等操作系统。优点是:体积小,安装包只有 10M 左右...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]