摘要: $query->orderBy(\DB::raw('FORMAT(transaction_number*price,2)'),"desc"); 阅读全文
posted @ 2020-11-27 18:05 小林不会飞 阅读(269) 评论(0) 推荐(0) 编辑
摘要: PHP number_format() 函数 number_format():函数可以通过千位分组的形式来格式化数字。 语法: number_format(number,decimals,decimalpoint,separator) 参数: number:必需。要格式化的数字。decimals:可 阅读全文
posted @ 2020-11-27 14:35 小林不会飞 阅读(242) 评论(0) 推荐(0) 编辑
摘要: <?php $data = array( array( 'id' => 5698, 'first_name' => 'Bill', 'last_name' => 'Gates', ), array( 'id' => 4767, 'first_name' => 'Steve', 'last_name' 阅读全文
posted @ 2020-11-27 12:02 小林不会飞 阅读(441) 评论(0) 推荐(0) 编辑
摘要: var arr = [ {name:'zopp',age:0}, {name:'gpp',age:18}, {name:'yjj',age:8} ]; function compare(property){ return function(a,b){ var value1 = a[property] 阅读全文
posted @ 2020-11-27 12:00 小林不会飞 阅读(2093) 评论(0) 推荐(0) 编辑