StripWhitespaceFilter class

Filter to strip leading and trailing whitespace.

Class Overview

Filter to strip leading and trailing whitespace.

Public Methods

init($leading=true, $trailing=true)

Initializes the StripWhitespaceFilter.

Parameters

$leading

Whether to strip leading whitespace (optional, defaults to true).

$trailing

Whether to strip trailing whitespace (optional, defaults to true).

filter($value)

Filters the passed value.

Parameters

$value

The value to filter.

Return value

The filtered value.

Inheritance

Base Classes

Inherited members