Loading index.php +6 −5 Original line number Diff line number Diff line Loading @@ -16,11 +16,12 @@ $func = new Hp\Test\Functions(); <body> <h1>Function 1</h1> <?php $arr = [ ['laravel', 'php'], ['codeigniter', 'php'], ['laravel', 'php'], ['c++', 'java'], $array = [ ['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)); ?> Loading Loading
index.php +6 −5 Original line number Diff line number Diff line Loading @@ -16,11 +16,12 @@ $func = new Hp\Test\Functions(); <body> <h1>Function 1</h1> <?php $arr = [ ['laravel', 'php'], ['codeigniter', 'php'], ['laravel', 'php'], ['c++', 'java'], $array = [ ['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)); ?> Loading