I want to count the number of items in the array when I use
$string = "1/2/3/4/5/6";
$array = explode("/", $string);
Of course the $string is there for testing but it is dynamic so the number of items can change. Is there a way or a function to count how many items are in $array?