<?php
$d = array(5, 6.5, 10, 3.355, 400, 9.43); function change($c, $array)
{
foreach($array as $key=> $value)
{
$array[$key] = $value + $value * $c / 100;
}
return $array;
}
$d = change(2, $d);
echo '<pre>';
echo '</pre>';
PD9waHAKCiRkID0gYXJyYXkoNSwgNi41LCAxMCwgMy4zNTUsIDQwMCwgOS40Myk7CmZ1bmN0aW9uIGNoYW5nZSgkYywgJGFycmF5KQp7Cglmb3JlYWNoKCRhcnJheSBhcyAka2V5PT4gJHZhbHVlKQoJewoJCSRhcnJheVska2V5XSA9ICR2YWx1ZSArICR2YWx1ZSAqICRjIC8gMTAwOwoJfQoJcmV0dXJuICRhcnJheTsKfQokZCA9IGNoYW5nZSgyLCAkZCk7CmVjaG8gJzxwcmU+JzsKcHJpbnRfcigkZCk7CmVjaG8gJzwvcHJlPic7