for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <[email protected]>
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Phalcon\Filter\Sanitize;
* Phalcon\Filter\Sanitize\Remove
* Sanitizes a value removing parts of a string
class Remove
{
* @var mixed input The text to sanitize
* @param mixed $input
* @param string|string[] $replace
* @return string|string[]
public function __invoke($input, $replace)
return str_replace($replace, "", $input);
}