Posted By

itguy51 on 07/09/10


Tagged


Versions (?)

PHP Count array


 / Published in: PHP
 

  1. <?php
  2. i = 0;
  3. foreach($data as $data){
  4. i++;
  5. }
  6. ?>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: shaunduncan on July 13, 2010

Or you could simply use: count($data);

You need to login to post a comment.