首页 > Web开发 > 详细

PHP常用函数

时间:2017-12-26 15:06:01      阅读:275      评论:0      收藏:0      [点我收藏+]

判断是否为空:

  empty() isset()

类型转换:

  unset() intval() floatval() strtotime() htmlspecialchars()

数组:

  is_array() in_array() explode() serialize() array_key_exists() array_search() array_merge() array_unique() array_push() array_slice() array_filter() array_keys() array_values() array_sum() sort() end()  json_encode()  count()

ps:数组的count方法里的参数,如果不是数组则返回1

字符串:

  trim() strrpos() strops() substr() substr_replace() explode() nl2brjson_decode()

时间:

  time() mktime() date、strtotime、microtime、mktime、time、localtime

图片:

  imagecreatetruecolor、imagecolorallocate、imagefilledrectangle、imagerectangle、imagecreatefrompng、imagesx、imagesy、imagecopy、imagettfbbox、imagettftext、imagepng、imagedestroy

文件:

  basename、dirname、file_exists、file_put_contents、file_get_contents、fclose、fopen

PHP常用函数

原文:https://www.cnblogs.com/gaocy/p/8117986.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!