distinct

a.在count计算不重复的记录的时候能用到
比如SELECT COUNT( DISTINCT player_id ) FROM task;
就是计算talbebname表中id不同的记录有多少条

ucase(‘字段’)---将字段转化为大写

array_push — 将一个或多个单元压入数组的末尾(入栈) 

array_pop---弹出数组元素胡最后一个单元

array_shift---弹出数组元素的第一个单元

<?php
$stack = array("orange", "banana");
array_push($stack, "apple", "raspberry");
print_r($stack);
?>
Array
(
    [0] => orange
    [1] => banana
    [2] => apple
    [3] => raspberry
)

mime_content_type():侦探一个文件的content-TYPE

<?php
echo mime_content_type('php.gif') . " ";
echo mime_content_type('test.php');
?>

原文地址:https://www.cnblogs.com/hehexu/p/8302737.html