N Nudalz New Member Sep 15, 2012 #1 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"
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"