hehexu

博客园 首页 新随笔 联系 订阅 管理

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') . "\n";
echo mime_content_type('test.php');
?>

 


posted on 2018-01-17 14:33  hehexu  阅读(159)  评论(0编辑  收藏  举报