bulrush Posted April 29, 2010 Share Posted April 29, 2010 If I have an array assigned like this: $myarray['one']=1; $myarray['two']=2; How do I count the number of values in this array? I need this count to do so me debugging. I think my array is empty but cannot be sure until I count the elements in it. Thanks. Link to comment https://forums.phpfreaks.com/topic/200164-count-values-in-an-array/ Share on other sites More sharing options...
isedeasy Posted April 29, 2010 Share Posted April 29, 2010 http://php.net/manual/en/function.count.php Link to comment https://forums.phpfreaks.com/topic/200164-count-values-in-an-array/#findComment-1050519 Share on other sites More sharing options...
bulrush Posted April 29, 2010 Author Share Posted April 29, 2010 Thank you. Link to comment https://forums.phpfreaks.com/topic/200164-count-values-in-an-array/#findComment-1050521 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.