Given this array:
$inventory = array( array(\"type\"=>\"fruit\", \"price\"=>3.50), array(\"type\"=>\"milk\", \"price\"=>2.90), array(\"
You can use usort with anonymous function, e.g.
usort($inventory, function ($a, $b) { return strnatcmp($a['price'], $b['price']); });