I\'m sorry, I just found a new problem due to my question about: Get The Number of Sepecific String Inside String.
I have been trying hard, how to find the number of
It is possible with substr_count()
I think you are not passing value in it properly try like this
$string = '120201M, 121212M-1, 21121212M, 232323M-2, 32323K, 323232K-1'; echo substr_count($string, 'K-1');//echo's 1 echo substr_count($string, 'K');// echo's 2