whitespace

1.0 1.1 1.2 1.3

Replaces all white-space characters with the given string

<?php
whitespace(string $value, [ string $with = ' '])
assign(mixed $value, string $var)
  • value: the text to process
  • with: the replacement string, note that any number of consecutive white-space characters will be replaced by a single replacement string

Examples

Example #1

index.tpl
{"a    b  c        d\ne"|whitespace}

The above example will output:

a b c d e