separate query return string and digit in Laravel
beginner Question : I have query like this : $arr1 = BillProduct::where('bill_id', '=', $bill->id)->get('quantity'); $arr2 = BillProduct::where('bill_id', '=', $bill->id)->get('product_id'); and its return like this : [[{"quantity":15}], [[{"product_id":2}] how can i get just digit like 15, 2 ?? and how get…