Hi,
I am new to PHP and I have this homework due Sunday, I got it on Friday btw, this Friday I have complete the first part of it , but I can not complete the second part of it. This is the exercise:
Largest Row and Column
Write a 4x4 array and fill it with random 1’s or 0’s
0 0 1 1
0 1 0 0
1 0 1 1
1 0 0 1
Display which row and which column has the biggest number of 1’s
this is my code:
<?php $num = array("0", "1"); $rows = rand(4, 4); //using rand() function to generate 4 different numbers, min & max=4 $cols = rand(4, 4); echo "'.$td_text.' | '; } echo "