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 = nullstaticIs unicode enabled?
Default valuenullDetails- Type
- bool
Methods



__construct(string | array $options = null) : voidConstructor
Supported options are
'match' => matching pattern
'replace' => replace with this
Parameters| Name | Type | Description |
|---|
| $options | string | array | |
|---|



filter(string $value) : stringPerform regexp replacement as filter
Parameters| Name | Type | Description |
|---|
| $value | string | |
|---|
Returns 


setMatchPattern(mixed $match) : \Zend_Filter_PregReplaceSet the match pattern for the regex being called within filter()
Parameters| Name | Type | Description |
|---|
| $match | mixed |
- same as the first argument of preg_replace
|
|---|
Returns 


setReplacement(mixed $replacement) : \Zend_Filter_PregReplaceSet the Replacement pattern/string for the preg_replace called in filter
Parameters| Name | Type | Description |
|---|
| $replacement | mixed |
- same as the second argument of preg_replace
|
|---|
Returns