|
Size: | 9289 |
Storage flags: | no_autoload,compress/gzip (31%) |
This filter will return null if the value being filtered is present in the filter’s list of values. If the value is not present, it will return that value.
For the opposite functionality see the Whitelist filter.
The following options are supported for Zend\Filter\Blacklist:
This is a basic example:
1 2 3 4 5 | $blacklist = new \Zend\Filter\Blacklist(array(
'list' => array('forbidden-1', 'forbidden-2')
));
echo $blacklist->filter('forbidden-1'); // => null
echo $blacklist->filter('allowed'); // => 'allowed'
|
The source code of this file is hosted on GitHub. Everyone can update and fix errors in this document with few clicks - no downloads needed.