《PHP+MySQL动态网页设计》课件 5.5 PHP中的常用系统函数.pptx
第5章PHP中的函数;本节内容;PHP中的常用系统函数;1.数学函数;1.数学函数;2.日期/时间函数;2.1修改PHP默认时区;2.2UNIX时间戳;2.3time()函数;2.3time()函数;2.4mktime()和strtotime()函数;2.4mktime()和strtotime()函数;2.5getdate()函数;2.5getdate()函数;2.6date()函数;2.6date()函数;2.7microtime()函数;2.7microtime()函数;3.字符串处理函数;3.字符串处理函数;3.1strlen()函数;3.1strlen()函数;3.2trim()、ltrim()、rtrim()函数;3.2trim()、ltrim()、rtrim()函数;3.3str_pad()函数;3.3str_pad()函数;3.4strtolower()、strtoupper()、ucfirst()、ucwords()函数;3.4strtolower()、strtoupper()、ucfirst()、ucwords()函数;3.5strpos()、strrpos()函数;3.5strpos()、strrpos()函数;3.6strstr()函数;3.6strstr()函数;3.7substr()函数;3.7substr()函数;3.8str_replace()函数;3.8str_replace()函数;3.9explode()、str_split()函数;3.9explode()、str_split()函数;3.9explode()、str_split()函数;3.9explode()、str_split()函数;3.10nl2br()函数;3.10nl2br()函数;4.图像处理函数;4.图像处理函数;4.1画布管理;4.1画布管理;4.1画布管理;4.2设置颜色;4.2设置颜色;4.3生成图像;4.3生成图像;4.4绘制图像;4.4.1imagefill()函数;4.4.1imagefill()函数;4.4.2imagesetpixel()函数;4.4.3imageline()函数;4.4.3imageline()函数;4.4.4imagerectangle()和imagefilledrectangle()函数;4.4.4imagerectangle()和imagefilledrectangle()函数;4.4.4imagerectangle()和imagefilledrectangle()函数;4.4.5imagepolygon()和imagefilledpolygon()函数;4.4.5imagepolygon()和imagefilledpolygon()函数;4.4.6imageellipse()和imagefilledellipse()函数;4.4.6imageellipse()和imagefilledellipse()函数;4.4.7imagearc()函数;4.4.7imagearc()函数;4.5在图像中绘制文字;4.5.1imagestring()和imagestringup()函数;4.5.1imagestring()和imagestringup()函数;4.5.2imagechar()和imagecharup()函数;4.5.2imagechar()和imagecharup()函数;4.6验证码的绘制与使用;4.6验证码的绘制与使用;4.6验证码的绘制与使用;