Php – How to get an array element value repeated based on another array element
I am trying to get a value repeated number of times the value of an array element I have the following arrays <?php $a = array(1, 2, 3); $b = array(3, 2, 5); foreach ($b as $x) { for ($i…