PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $arr = [ [ "name" => "rahul", "age" => 31 ], [ "name" => "vidyadhar", "age" => 34 ], [ "name" => "nikesh", "age" => 33 ], ]; $temp = []; foreach($arr as $val) { $temp[] = $val['age']; } print_r(sort($temp));
Show:  
Copy Clear