今日学习PHP过程中的新知识

学习到的新函数:

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,忽略大小写



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值