public static function printf($string)
	{
		$lang = static::getLanguage();
		$args = func_get_args();
		$count = count($args);

		if ($count > 0)
		{
			if (is_array($args[$count - 1]))
			{
				$args[0] = $lang->_(
					$string, array_key_exists('jsSafe', $args[$count - 1]) ? $args[$count - 1]['jsSafe'] : false,
					array_key_exists('interpretBackSlashes', $args[$count - 1]) ? $args[$count - 1]['interpretBackSlashes'] : true
				);
			}
			else
			{
				$args[0] = $lang->_($string);
			}

			return call_user_func_array('printf', $args);
		}

		return '';
	}
public static function printf($string)
	{
		$lang = static::getLanguage();
		$args = func_get_args();
		$count = count($args);

		if ($count > 0)
		{
			if (is_array($args[$count - 1]))
			{
				$args[0] = $lang->_(
					$string, array_key_exists('jsSafe', $args[$count - 1]) ? $args[$count - 1]['jsSafe'] : false,
					array_key_exists('interpretBackSlashes', $args[$count - 1]) ? $args[$count - 1]['interpretBackSlashes'] : true
				);
			}
			else
			{
				$args[0] = $lang->_($string);
			}

			return call_user_func_array('printf', $args);
		}

		return '';
	}
public static function printf ( $ string ) { $ lang = static :: getLanguage ( ) ; $ args = func_get_args ( ) ; $ count = count ( $ args ) ; if ( $ count > 0 ) { if ( is_array ( $ args [ $ count - 1 ] ) ) { $ args [ 0 ] = $ lang -> _ ( $ string , array_key_exists ( 'jsSafe' , $ args [ $ count - 1 ] ) ? $ args [ $ count - 1 ] [ 'jsSafe' ] : false , array_key_exists ( 'interpretBackSlashes' , $ args [ $ count - 1 ] ) ? $ args [ $ count - 1 ] [ 'interpretBackSlashes' ] : true ) ; } else { $ args [ 0 ] = $ lang -> _ ( $ string ) ; } return call_user_func_array ( 'printf' , $ args ) ; } return '' ; }
Passes a string thru an printf.

Note that this method can take a mixed number of arguments as for the sprintf function.

@param   string  $string  The format string.

@return  mixed

@since   1.0
Passes a string thru an printf .