今日学习PHP过程中的新知识
来源:互联网 发布:linux批量删除文件名 编辑:程序博客网 时间:2024/06/05 16:25
学习到的新函数:
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,忽略大小写
- 今日学习PHP过程中的新知识
- 学习新知识
- 新知识学习
- 新知识学习
- 学习新知识
- 学习新知识
- 本人shell学习中的新知识点、遗忘知识点提要
- 学习新知识的顺序
- 学习新知识的开始
- 论新知识的学习
- 坚持每天学习新知识
- 应该怎样学习新知识?
- 如何学习新知识
- 怎样学习新知识
- 学习新知识的方法
- 开通博客 学习新知识
- 开始学习新知识
- 应该怎样学习新知识?
- Error:Conflict with dependency 'com.google.code.findbugs:jsr305'
- linux省略root密码,自动登录root方法
- Seay-svn源代码备份漏洞
- 简单接口测试(http/https),方法已经封装,也写了一个窗口测试工具
- POJ 3744 Scout YYF I
- 今日学习PHP过程中的新知识
- POJ 3057 Evacuation 笔记
- TCP-IP学习笔记(二)——概述
- 完美字符串
- python字符串换行的三种方式
- Volatile
- WebView常见漏洞
- 使用OkHttp
- IOS的IPV6测试