Jump to content

count() question


skrappy1979

Recommended Posts

I need to add a condition to a while() statement I have. It should run when $counter is less than the number of records in  my $products array which has 5 products. I set  $counter  and  $product_no to 0.

I need to use the count() function to get the number of records.  Does that make sense? Do ya'll need more info. Any help is Greatly appreciated. Ive referenced and searched but cant figure out how to incorporate it. Im still learning.  :shrug:

Peace,

Skrappy

 

Link to comment
https://forums.phpfreaks.com/topic/217629-count-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.