php - How to change the array uniformly -
here array
$myarray= array(1, 2, 3, 4);
i want multiply 5 times , dispay answer
5 10 15 20
how can operation using foreach loop
as op needs using foreach
it simple should iterate inside array using foreach
, multiply * 5
, have <br>
<?php $myarray = array(1, 2, 3, 4); foreach ($myarray $value) { echo ($value*5).'<br>'; } ?>
here's eval
Comments
Post a Comment