今日学习PHP过程中的新知识
2017-07-18 10:58
190 查看
学习到的新函数:
1.isset()
2.function_exists()
3.unset():使用该方法销毁类的时候,会调用类的析构方法
4.str_replace(被替换的字符串,替换成的字符串,需要替换的字符串);
5.empty()
6.serialize()
7.unserialize()
字符串操作函数
8.trim()
9.itrim()
10.ltrim()
11.strlen()
11.mb_strlen():获取中文字符串长度
12.substr()
12.mb_substr()
13.strpos()
14.str_repalce()
15.sprintf()
16.imploade()
17.explode()
#字符串操作函数结束
#正则匹配的函数
18.preg_quote()
19.preg_match():返回一个数
20.preg_match_all()
#设置cookie的函数
$_COOKIE
setcookie()
ob_start()
ob_get_contents()
ob_clean()
nl2br();
header():可以通过该函数设置cookieheader("Set-Cookie:"text"="value"")
#设置session
session_start()
$_SESSION
#文件操作函数
file_exists()
file_get_contents()
is_file()
is_readable()
is_writeable()
fileowner()
filectime()
filemtime()
fileatime()
filesize()
#日期时间
time()
date()
strtotime()
#图形类
Graphic Device
imagecreatetruecolor()
imagecolorallocate()
imagefile()
imagepng()
imagedestroy()
学习到的新关键字:
1.clone
正则规则:
1.可以使用任意的分隔符,可以在pattern后面注明i,忽略大小写
1.isset()
2.function_exists()
3.unset():使用该方法销毁类的时候,会调用类的析构方法
4.str_replace(被替换的字符串,替换成的字符串,需要替换的字符串);
5.empty()
6.serialize()
7.unserialize()
字符串操作函数
8.trim()
9.itrim()
10.ltrim()
11.strlen()
11.mb_strlen():获取中文字符串长度
12.substr()
12.mb_substr()
13.strpos()
14.str_repalce()
15.sprintf()
16.imploade()
17.explode()
#字符串操作函数结束
#正则匹配的函数
18.preg_quote()
19.preg_match():返回一个数
20.preg_match_all()
#设置cookie的函数
$_COOKIE
setcookie()
ob_start()
ob_get_contents()
ob_clean()
nl2br();
header():可以通过该函数设置cookieheader("Set-Cookie:"text"="value"")
#设置session
session_start()
$_SESSION
#文件操作函数
file_exists()
file_get_contents()
is_file()
is_readable()
is_writeable()
fileowner()
filectime()
filemtime()
fileatime()
filesize()
#日期时间
time()
date()
strtotime()
#图形类
Graphic Device
imagecreatetruecolor()
imagecolorallocate()
imagefile()
imagepng()
imagedestroy()
学习到的新关键字:
1.clone
正则规则:
1.可以使用任意的分隔符,可以在pattern后面注明i,忽略大小写
相关文章推荐
- java学习过程中一些知识
- PHP学习过程中不懂的地方
- PHP学习笔记之二 php入门知识
- PHP学习(1) ---apache的一些知识
- JavaScript与PHP基础知识对比学习
- MySql存储过程学习知识小结
- 今日.NET学习到的知识
- PHP学习笔记(四)--基础知识之常用运算符
- PHP学习之路今日开启
- 关于PHP学习过程中的一些疑惑
- 这一次不写什么知识博客,就遇到的学习过程中的问题简要概述一下,算是给自己做个归纳总结吧
- 做项目过程中学到的PHP知识收集
- php学习笔记之基础知识3
- 自己在做项目过程中学到的PHP知识收集
- PHP学习笔记(一)基础知识
- 学习PHP的过程记录(4)-常用标签3
- 大家一起学习PHP(一)【基础知识1】
- 今日.NET学习到的知识(2)----关键在于那段javascript.双击行事件
- 学习php自行开发MVC框架过程(三)
- PHP学习笔记(五)--基础知识之语言结构语句