madsynn
129
6
Laravel

Loop Question

Posted 1 month 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.