个人PHP常用内置函数

开发常用
phpinfo
print_r
exit
var_dump
var_export
 
empty
isset
unset
is_null
 
类型判断
is_array
is_iterable 可以判断对象 数组 继承了迭代器的都可以判断为true
is_numeric
is_string
is_float
is_resource
explode 对字符串切割
implode 对数组分割
 
字符串处理
strval
intval
str_replace
preg_replace
str_substr
mb_substr
strpos
strlen
strtotime
time
mktime 日期的 UNIX 时间戳
microtime 毫秒时间
strtolower
strtoupper
ucfirst 首字母大写
round
md5
join
rand
mt_rand
count
 
数组操作
array_push
array_shift
array_unshift
array_pop
array_diff
array_unique
array_splice
array_rand
array_merge
array_map
array_keys
array_chunk
 
文件操作
file_get_contents
file_put_contents
curl 操作函数库
fopen
fread
fgets
fputcsv
fgetcsv
filesize
fwirte
fputs
fclose
is_uploaded_file
move_uploaded_file
readfile
rename
mkdir
chmod
is_file
is_dir
pack 把数据装入一个二进制字符串
unpack 从二进制字符串对数据进行解包
 
call_user_func($this, $str)
call_user_func_array($this, []);
 
mysql 操作函数
redis 操作函数
数学常用函数
进制转化函数
图片处理gd库
 

posted @ 2020-11-16 11:49  丶静秋枫  阅读(66)  评论(0)    收藏  举报