摘要:
switch switch (expression) { case label1: expression = label1 时执行的代码 ; break; case label2: expression = label2 时执行的代码 ; break; default: 表达式的值不等于 label 阅读全文
posted @ 2019-12-05 15:39
在斑马线上散布
阅读(432)
评论(2)
推荐(0)
摘要:
orderRaw('rand()'); /** * 随机获取一条商品信息 * @param [type] $condition * @param [type] $field * @param [type] $limit * @return void */ public function randSk 阅读全文
posted @ 2019-12-05 00:08
在斑马线上散布
阅读(1963)
评论(0)
推荐(0)
摘要:
array_sum(array_column($arr, 'num')); //计算二维数组指定元素的和 $arr = [ [ 'id'=>1, 'num'=>3, ], [ 'id'=>2, 'num'=>4, ], [ 'id'=>3, 'num'=>1, ], ]; //计算二维数组指定元素的 阅读全文
posted @ 2019-12-05 00:01
在斑马线上散布
阅读(1056)
评论(0)
推荐(0)

浙公网安备 33010602011771号