madsynn
4 months ago

Loop Question

Posted 4 months ago by madsynn

I need a foreach loop to loop 20 times even if the values within are empty can anyone help me i am not sure how to do it.

$count = 0;
if (count($values > 20)):
foreach ($values as $value):

$count . $value

endforeach
endif

Please sign in or create an account to participate in this conversation.