Skip to content
Snippets Groups Projects
Commit bd86313a authored by Адлан Шамавов's avatar Адлан Шамавов
Browse files

fix2

parent 143c7d08
No related branches found
No related tags found
1 merge request!2Ptps function 2
......@@ -17,10 +17,11 @@ $func = new Hp\Test\Functions();
<h1>Function 1</h1>
<?php
$array = [
['id'=>10, 'name'=>'Jhon', 'age'=>23],
['id'=>32, 'name'=>'Alex', 'age'=>34],
['id'=>54, 'name'=>'Bob', 'age'=>45],
['id'=>6, 'name'=>'Mike', 'age'=>61],
['price'=>10, 'count'=>2],
['price'=>5, 'count'=>5],
['price'=>8, 'count'=>5],
['price'=>12, 'count'=>4],
['price'=>8, 'count'=>4]
];
print_r($func->sortPrice($array));
?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment