-
解析PHP interface:接口
[PHP教程] 2021-05-26 23:35:59 53人阅读
1、接口的声明 如果抽象类中的所有方法都是抽象方法,我们就可以使用另外一种声明方式接口技术。我们都知道类的声明是使用class关键字,而接口的声明则是使用int...[详细]
-
为你解释PHP GD库是个啥
[PHP教程] 2021-05-26 23:35:16 87人阅读
1、GD库是什么 GD 库(也可以称为 GD2 函数库)是一个开源的用于创建图形图像的函数库,该函数库由C语言编写,可以在 Perl,PHP 等多种语言中使用。GD 库中提供...[详细]
-
MySQL数据库分析
[PHP教程] 2021-05-26 23:33:21 161人阅读
下面总结了一下 MySQL 具备的特点。 1) 功能强大 MySQL 中提供了多种数据库存储引擎,各引擎各有所长,适用于不同的应用场合,用户可以选择最合适的引擎以得到最...[详细]
-
教你如何PHP设置Cookie
[PHP教程] 2021-05-26 23:30:36 74人阅读
不过在设置 Cookie 之前必须了解的是,Cookie 是 HTTP 响应头的一部分,而响应头必须在页而其他内容之前发送,它必须最先输出。若在 setcookie() 函数前输出一个...[详细]
-
PHP的检测与给定模式匹配的数组元素
[PHP教程] 2021-05-26 23:29:33 116人阅读
参数说明如下: $pattern:要搜索的模式,也就是定义好的正则表达式; $input:要搜索的数组; $flags:可选参数,可以设置为 PREG_GREP_INVERT,这时函数会返回...[详细]
-
PHP如何进行字符串替换
[PHP教程] 2021-05-26 23:28:57 146人阅读
str_ireplace() 和 str_replace 使用新的字符串替换原来字符串中指定的特定字符串,str_replace 区分大小写,str_ireplace() 不区分大小写,两者语法相似。 str_...[详细]
-
PHP substr包含的截取字符串
[PHP教程] 2021-05-26 23:28:27 150人阅读
参数说明如下: $string:需要截取的字符串,该字符串至少含有一个字符; $start:截取字符串的起始位置; 如果 $start 是非负数,那么字符串将从 $string 的第...[详细]
-
为你解析PHP mb_substr:截取中文字符串
[PHP教程] 2021-05-26 14:29:16 102人阅读
参数说明如下: $str:待截取的字符串,字符串中至少包含一个字符; $start:截取字符串的起始位置; 如果 $start 为非负数,那么字符串会从 $str 的第 $start...[详细]
-
PHP explode中的字符串转数组
[PHP教程] 2021-05-26 14:27:33 108人阅读
参数说明如下: $delimiter:用于分割字符串的分隔字符; $string:需要分割的字符串; $limit:可选参数,可以为空,规定要返回数组元素的数目; 如果 $limit...[详细]
-
PHP strlen和mb_strlen如何获取字符串长度
[PHP教程] 2021-05-26 14:27:00 87人阅读
【示例】使用 strlen() 函数获取字符串的长度。 ?php $str = http://c.biancheng.net/php/ ; echo 字符串 . $str . 的长度为: . strlen ( $str ). br ; $str =...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]