does anyone know a way to do something X amount of times in sequence, for example, if I have an array of numbers and I want to print a star, *, X amount of times where X is the number.
Code: Select all
$array = array(4, 7, 9, 10, 56, 78, 99);
echo '*' * $array[0]; /*Not the way to do it but just to indicate what I'm trying to do*/Thanks