i have sorted an array of travel products by price . i'd like to move the products with a price =0 at the end of the list.
Here is what i have tried:
for($i = 0; $i < count($mes_voyages); ++$i) {
if($mes_voyages[i]['prix']==0)
{
array_push($mes_voyages,$mes_voyages[i]);
unset($mes_voyages[i]);
}
}
$.