array(); 创建数组count(); 统计数组元素array_keys();获取数组keyarray_values; 获取数组值array_merge();合并数组array_combine();合并数组array_unique();数组唯一值sort();数组排序顺序rsort();倒序array_pop;删除数组末尾元素array_push();数组末尾添加元素array_shift();头部删除array_ushift();头部添加array_filter();回调函数过滤数组中的元素array_fill();填充数组array_diff();差集current();当前数组in_array();在数组is_array();判断array_search();搜索array_column();数组列array_key_exists();判断key是否存在
sub_str();截取字符串str_replace();字符串替换strlen();长度strtoupper();转大写strtolower();转小写strstr();搜索strrev();翻转ucwords();首字母大写trim();去除空格strpos();查找第一次位置str_shuffle();随机打乱字符
date('Y-m-d H:i:s', strtotime('-1 days'));
$_GET ----->get传送方式$_POST ----->post传送方式$_REQUEST ----->可以接收到get和post两种方式的值$GLOBALS ----->所有的变量都放在里面$_FILE ----->上传文件使用$_SERVER ----->系统环境变量$_SESSION ----->会话控制的时候会用到$_COOKIE ----->会话控制的时候会用到
date_default_timezone_get()返回默认时区。date_default_timezone_set()设置默认时区。date()格式化本地时间/日期。getdate()返回日期/时间信息。gettimeofday()返回当前时间信息。microtime()返回当前时间的微秒数。mktime()返回一个日期的 Unix时间戳。strtotime()将任何英文文本的日期或时间描述解析为 Unix时间戳。time()返回当前时间的 Unix时间戳。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号