3.6. Function reference
3.6.29. spacify()
3.6.28. scalar()
« Previous
3.6.30. stddev()
Next »

3.6.29. spacify()

Referencestring spacify(string $text [, string $delimiter])

Puts $delimiter every two characters in the $text. By default, $delimiter is set to one space:

{spacify('This is a text')}
{spacify('This is a text', '-')}

The result:

T h i s   i s   a   t e x t
T-h-i-s- -i-s- -a- -t-e-x-t

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

3.6.29. spacify()
3.6. Function reference
« Previous
3.6.28. scalar()
Next »
3.6.30. stddev()