<?php
$array = [
[
"optionNumber" => 3,
"configuration_id" => 10,
"id" => 1,
"optionActive" => 1,
"lastUpdated" => "2010-03-17 15:44:12"
],
[
"optionNumber" => 2,
"configuration_id" => 9,
"id" => 1,
"optionActive" => 1,
"lastUpdated" => "2010-03-17 15:44:12"
],
[
"optionNumber" => 1,
"configuration_id" => 8,
"id" => 1,
"optionActive" => 1,
"lastUpdated" => "2010-03-17 15:44:12"
]
];
sort($array);
var_export($array);
- Output for 8.1.32, 8.2.0 - 8.2.29, 8.3.0 - 8.3.26, 8.4.1 - 8.4.13
- array (
0 =>
array (
'optionNumber' => 1,
'configuration_id' => 8,
'id' => 1,
'optionActive' => 1,
'lastUpdated' => '2010-03-17 15:44:12',
),
1 =>
array (
'optionNumber' => 2,
'configuration_id' => 9,
'id' => 1,
'optionActive' => 1,
'lastUpdated' => '2010-03-17 15:44:12',
),
2 =>
array (
'optionNumber' => 3,
'configuration_id' => 10,
'id' => 1,
'optionActive' => 1,
'lastUpdated' => '2010-03-17 15:44:12',
),
)
preferences:
54.8 ms | 407 KiB | 5 Q