Похожие чаты

At the first it's better to use $Array = [1,34,32,2,4] instead

of
$Array = array(1,34,32,2,4)
Ok? the second one is old.

<?php
// Init
$arrays = [
[1, 34, 32 , 2, 4],
[3, 32, 13 , 11, 89],
[56, 11, 7 , 9, 95],
[14, 90, 333 , 23, 1],
[5, 33, 54 , 23, 41],
];

for ($i = 0; $i < count($arrays); $i++){
for ($l = 0 ; $l < count($arrays[$i]); $l++){
print $arrays[$i][$l];
}
print "<br />";
}

as @LKD70 said .

but the formula is
the second "loop" always print items in one line and the first "loop" always shows count of lines. if you want understand completely please try "pyramid" like this :


*****
****
***
**
*

or

*
**
***
****
*****



Can someone assist pls

1 ответов

11 просмотров

As for this... An example to play with and work out: <?php $height = 10; for($i = 0; $i < $height; $i++){ for($x = 0; $x < $i; $x++) echo "*"; echo "<br>"; }

Похожие вопросы

Обсуждают сегодня

Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
75
I love the passion, really do. I do think this is being blown way out of proportion. We are not deleting our Telegram or not allowing you to talk about anything you want, a...
Mike Herron
3
Did you guys see the latest tweet from TonGifts? 🚀
Mike
44
Hey guys, did you see the latest announcement about $FUN? 🔥
Brian
21
Did kadena deliver anything on time?
Femboi Uwu
22
Hey guys Long term LINK holder here (All in for the past 5 years). I actually tried not to pay too much attention anymore and just let my thesis play out. But seeing that fili...
Koala Chud
9
My thoughts on it: LLC growth might be signed contracts and partnerships with business companies and cash flow on LLC bank accounts. Not bad for CMO, CEO, and all the manage...
Katu
2
Whats the deadline to convert noia into synt on erc20?
✙ Alex ✙ ✤ ∞
17
Хотел бы спросить у знающих, правильную ли я выбрал книгу для начала изучения ассемблера Юрова В.И ? Или есть более лучшие книги для начала обучения?
Botsman
31
Conversation at a festival with a non-crpto person (not a normie by any stretch, though): * person: tell me about crypto, me: ok, the original idea is p2p sound money for the...
molecular#123 🐓
25
Карта сайта