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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -