If element is found . increment the total count of the triplets
if ( $ arr [ $ k ] == $ toFind ) { $ totalCount ++ ; } } } } } } echo ( " Total ▁ number ▁ of ▁ triplets ▁ found ▁ : ▁ " ) ; echo ( $ totalCount ) ; ? >