3.6. Function reference
3.6.15. indent()
3.6.14. firstof()
« Previous
3.6.16. isImage()
Next »

3.6.15. indent()

Referencestring indent(string $text, integer $num [, string $with ])

Indents every new line in $text with $num characters $with (if this argument is not set, spaces are used by default).

<pre>
{strip('
This is a text
that needs proper
indentation', 4)}
</pre>

The result:

<pre>
    This is a text
    that needs proper
    indentation
</pre>

This function can operate also on a container of strings, making indents to them all and returning the modified container.

3.6.15. indent()
3.6. Function reference
« Previous
3.6.14. firstof()
Next »
3.6.16. isImage()