protected function _getParametersCountToReplace($string)
    {
        $sprintfParameters = array('%s', '%1$s', '%2$s', '%3$s', '%4$s', '%5$s', '%6$s', '%7$s', '%8$s', '%9$s');
        $count = array();
        foreach ($sprintfParameters as $parameter) {

            $placeholderCount = substr_count($string, $parameter);
            if ($placeholderCount > 0) {

                $count[$parameter] = $placeholderCount;
            }
        }
        return $count;
    }
protected function _getParametersCountToReplace($string)
    {
        $sprintfParameters = array('%s', '%1$s', '%2$s', '%3$s', '%4$s', '%5$s', '%6$s', '%7$s', '%8$s', '%9$s');
        $count = array();
        foreach ($sprintfParameters as $parameter) {

            $placeholderCount = substr_count($string, $parameter);
            if ($placeholderCount > 0) {

                $count[$parameter] = $placeholderCount;
            }
        }
        return $count;
    }
protected function _getParametersCountToReplace ( $ string ) { $ sprintfParameters = array ( '%s' , '%1$s' , '%2$s' , '%3$s' , '%4$s' , '%5$s' , '%6$s' , '%7$s' , '%8$s' , '%9$s' ) ; $ count = array ( ) ; foreach ( $ sprintfParameters as $ parameter ) { $ placeholderCount = substr_count ( $ string , $ parameter ) ; if ( $ placeholderCount > 0 ) { $ count [ $ parameter ] = $ placeholderCount ; } } return $ count ; }
Counts the placeholder parameters n given string

@param string $string
@return array
Counts the placeholder parameters n given string