guys. how to code array with image. the image will be like this. * ** *** **** ***** | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

guys. how to code array with image. the image will be like this. * ** *** **** *****

11th Jul 2016, 12:07 PM
Lenherij Oaba
Lenherij Oaba - avatar
4 Answers
+ 9
<?php for($i=1;$i<=5;$i++){ for($j=1;$j<=$i;$j++){ echo '*'; } echo '<br>'; } ?>
11th Jul 2016, 2:14 PM
Shashikant Chauhan
Shashikant Chauhan - avatar
+ 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>; } ?>
12th Jul 2016, 2:33 PM
Lenherij Oaba
Lenherij Oaba - avatar
0
thank you. 👍👍
12th Jul 2016, 10:33 AM
Lenherij Oaba
Lenherij Oaba - avatar
0
how can i use array for image?
25th Jul 2016, 1:55 PM
meenakshi