english/libraries/joomla/methods.php
/**
	 * Passes a string thru an printf.
	 *
	 * @param   format The format string.
	 * @param   mixed Mixed number of arguments for the sprintf function.
	 *
	 * @return  mixed
	 *
	 * @since   11.1
	 */
Passes a string thru an printf.
@param   format The format string.
@param   mixed Mixed number of arguments for the sprintf function.

@return  mixed


Passes a string thru an printf . @param format The format string . @param mixed Mixed number of arguments for the sprintf function . @return mixed
public static function printf($string)
	{
		$lang	= JFactory::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 = JFactory :: 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.
Passes a string thru an printf .