0
guys. how to code array with image. the image will be like this. * ** *** **** *****
4 Réponses
+ 9
<?php
for($i=1;$i<=5;$i++){
for($j=1;$j<=$i;$j++){
echo '*';
}
echo '<br>';
}
?>
+ 2
is this correct.? i use image.
<?php
for($i=1;$i<=5;$i++)
{
for($j=1;$j<=$i;$j++)
{
echo '<img src ="black.png"/>';
}
echo '<br>;
}
?>
0
thank you. 👍👍
0
how can i use array for image?