<?php
require_once "OrderTrait.php";
$exampleSpl = SplFixedArray::fromArray([
[
"id" => 'arogtrg879512gggfg',
"name" => '?aaaaaa',
],
[
"id" => 'assdfdsfsddfg8456g',
"name" => 'Aaaaaaa',
],
[
"id" => 'asdsadfasd68f7sd5f41',
"name" => '-A',
],
[
"id" => 'asdsadfasd68f7sd5f41',
"name" => 'ffffFFff',
],
[
"id" => 'argswefweftrg879512gggfg',
"name" => 'Ddddddd',
]
]);
$array = OrderTrait::orderArrayPerson($exampleSpl->toArray(), 'name');
var_dump($array);
|