StringReplacementFactory
in package
implements
ReplacementFactoryInterface
String replacement filter factory
Tags
Table of Contents
Interfaces
- ReplacementFactoryInterface
- Replacement filter factory interface
Properties
- $filters : array<string|int, mixed>
- Lazy-loaded filters
Methods
- createFilter() : FilterInterface
- Create a new StreamFilter to replace $search with $replace in a string
Properties
$filters
Lazy-loaded filters
private
array<string|int, mixed>
$filters
= []
Methods
createFilter()
Create a new StreamFilter to replace $search with $replace in a string
public
createFilter(mixed $search, mixed $replace) : FilterInterface
Parameters
- $search : mixed
- $replace : mixed