count() - Return the length of an array


SUBMITTED BY: henry1874w

DATE: June 17, 2017, 1:06 p.m.

FORMAT: Text only

SIZE: 126 Bytes

HITS: 252

  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4. <?php
  5. $cars = array("Volvo", "BMW", "Toyota");
  6. echo count($cars);
  7. ?>
  8. </body>
  9. </html>

comments powered by Disqus