Simple array order problem , need help

php simple array ordering problem :slight_smile:

hi all, who can help me with that : i need to order the values of the array after adding taxes (tva mean VAT), how to order the array before and after vat addition ?
can u give 2 axamples ?

thank u.


print_r ($salariers);

echo “<br>”;

foreach ($salariers as $a => $value) {

 for ($i=0;$i&lt; 4; $i++){


$calculatemax = array($i);
$vat = (($value)*(.17));
$total = ($s+$vat);
echo ($a.$s.’ ‘.$vat.’ '.$total);
echo “<br>”;