I am trying to create a for that runs when $midarray[i]
isnt =null
.
This is the script I created:
for ($i=0; $midarray[i] !=null; $i++) {
$maxarray = $i;
}
I am trying to do that as long $midarray[i]
isnt empty, its will run the for.
I tried to use while but its didnt work.
Thank you!