Jump to content

How many elements in an array


Drezard

Recommended Posts

Hello, Whats a function to work out how many elements in an array...

 

So like if i want to figure out how many elements in this array:

 

$explodearray = explode(',' , $_SESSION['username']);

 

How many elements are in the $explodearray?

 

Elements as in the number in the brackets...

 

thanks... Daniel

 

 

Link to comment
https://forums.phpfreaks.com/topic/45971-how-many-elements-in-an-array/
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.