From Joomla! Documentation

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JText::sprintf


Passes a string thru a sprintf.

public static function sprintf (
Parameter Type Default Description
$string string The format string.
mixed Mixednumberofargumentsforthesprintffunction.
array optionalArrayofoptionarray('jsSafe'=>boolean,'interpretBackSlashes'=>boolean,'script'=>boolean)where-jsSafeisabooleantogenerateajavascriptsafestrings-interpretBackSlashesisabooleantointerpretbackslashes\->\,


See also

  • Joomla 11.1 JText::sprintf source code on BitBucket
  • Joomla 11.1 Class JText
  • Other versions of JText::sprintf

User contributed notes

Code Examples