laravel 中将DB::select() 得到的内容转为数组

1 $sql = "select order_id from ecs_order_info where order_status=1 and pay_status=2";
2 $result=DB::select($sql);
3 $ids = array_map('get_object_vars', $result);

猜你喜欢

转载自www.cnblogs.com/Jessie-candy/p/12958019.html