Filter/PregReplace.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Filter
- Version
- $Id$
\Zend_Filter_PregReplace
Package: Zend_Filter- Implements
- Children
- \Zend_Filter_Word_SeparatorToSeparator
- \Zend_Filter_Word_Separator_Abstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
bool $_unicodeSupportEnabled = null
staticIs unicode enabled?
Default valuenull
Details- Type
- bool
Methods
__construct(string | array $options = null) : void
Constructor
Supported options are
'match' => matching pattern
'replace' => replace with this
ParametersName | Type | Description |
---|
$options | string | array | |
---|
filter(string $value) : string
Perform regexp replacement as filter
ParametersName | Type | Description |
---|
$value | string | |
---|
Returns setMatchPattern(mixed $match) : \Zend_Filter_PregReplace
Set the match pattern for the regex being called within filter()
ParametersName | Type | Description |
---|
$match | mixed |
- same as the first argument of preg_replace
|
---|
Returns setReplacement(mixed $replacement) : \Zend_Filter_PregReplace
Set the Replacement pattern/string for the preg_replace called in filter
ParametersName | Type | Description |
---|
$replacement | mixed |
- same as the second argument of preg_replace
|
---|
Returns