__construct() __construct(string|array $search, string|array $replace) Create a new StringReplacementFilter with $search and $replace Parameters string|array $search string|array $replace
shouldBuffer() shouldBuffer(string $buffer) : boolean Returns true if based on the buffer passed more bytes should be buffered Parameters string $buffer Returns boolean
filter() filter(string $buffer) : string Perform the actual replacements on $buffer and return the result Parameters string $buffer Returns string