.. include:: /Includes.rst.txt
.. _typo3fluid-fluid-format-printf:
=============
format.printf
=============
A view helper for formatting values with printf. Either supply an array for
the arguments or a single value.
See http://www.php.net/manual/en/function.sprintf.php
= Examples =
%.3e
%2$s is great, TYPO%1$d too. Yes, TYPO%1$d is great and so is %2$s!
We love %s
{someText -> f:format.printf(arguments: {1: 'TYPO3'})}
Arguments
=========
.. _format.printf_value:
value
-----
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
String to format
.. _format.printf_arguments:
arguments
---------
:aspect:`DataType`
mixed
:aspect:`Default`
array ()
:aspect:`Required`
false
:aspect:`Description`
The arguments for vsprintf