Count array elements after the given element

Nudalz

New Member
How to count array elements after the first occurrence of a given element?For example\[code\] $a = array('a', 'c','xxd','ok','next1','next2'); echo occurences_after($a, 'ok'); \[/code\]should print "2"
 
Back
Top