Jump to content


Photo

Count Array


  • Please log in to reply
2 replies to this topic

#1 ldsmike88

ldsmike88
  • Members
  • PipPipPip
  • Advanced Member
  • 168 posts
  • LocationFlorida

Posted 29 May 2006 - 03:46 AM

If I have an array of makes that includes Chrysler, Dodge, Ford, GMC and Honda, how would I count the array to see how many makes there were in the array? Thanks!

Mike

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 29 May 2006 - 05:08 AM

$howmany = count($name_of_my_array);

Legend has it that reading the manual never killed anyone.
My site

#3 ldsmike88

ldsmike88
  • Members
  • PipPipPip
  • Advanced Member
  • 168 posts
  • LocationFlorida

Posted 29 May 2006 - 07:44 PM

Awesome. Thanks!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users