$arr = [
[
"window" => 01,
"services" => "Asd",
"clients_count" => 4
],
[
"window" => 02,
"services" => "Asd",
"clients_count" => 3
]
];
[
"window" => 02,
"services" => "Asd",
"clients_count" => 3
]
<?php
$arr = [
[
"window" => 01,
"services" => "Asd",
"clients_count" => 4
],
[
"window" => 02,
"services" => "Asd",
"clients_count" => 3
]
];
usort($arr, function($a, $b){
return $a['clients_count'] > $b['clients_count'];
});
print_r($arr[0]);
Array ( [window] => 2 [services] => Asd [clients_count] => 3 )