Actions

API17

JText::sprintf

From Joomla! Documentation

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JText::sprintf

Description

Passes a string thru a sprintf.

Description:JText::sprintf [Edit Descripton]

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

->newline,->tabulation-scriptisabooleantoindicatethatthestringwillbepushinthejavascriptlanguagestore

See also

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

SeeAlso:JText::sprintf [Edit See Also]

User contributed notes

<CodeExamplesForm />