spacify

1.0 1.1 1.2 1.3

Adds spaces (or the given character(s)) between every character of a string

<?php
spacify(string $value, [ $space_char = ' ' ])

Examples

Example #1

index.tpl
{spacify 'abcd'}
{spacify 'abcd' '-'}

The above example will output:

a b c d
a-b-c-d