src/includes/classes/Core/Utils/PhpStrip.php
public function tags($value)
    {
        if (is_array($value) || is_object($value)) {
            foreach ($value as $_key => &$_value) {
                $_value = $this->tags($_value);
            } // unset($_key, $_value);
            return $value;
        }
        if (!($string = (string) $value)) {
            return $string; // Empty.
        }
        $regex = // Search for PHP tags.
            '/'.// Open pattern delimiter.
            '(?:'.// Any of these.

                '\<\?php.*?\?\>|\<\?\=.*?\?\>|\<\?.*?\?\>|\<%.*?%\>'.
                '|\<script\s+[^>]*?language\s*\=\s*(["\'])?php\\1[^>]*\>.*?\<\s*\/\s*script\s*\>'.

            ')'.// Close 'any of these'.
            '/uis'; // End pattern.
        return preg_replace($regex, '', $string);
    }
public function tags($value)
    {
        if (is_array($value) || is_object($value)) {
            foreach ($value as $_key => &$_value) {
                $_value = $this->tags($_value);
            } // unset($_key, $_value);
            return $value;
        }
        if (!($string = (string) $value)) {
            return $string; // Empty.
        }
        $regex = // Search for PHP tags.
            '/'.// Open pattern delimiter.
            '(?:'.// Any of these.

                '\<\?php.*?\?\>|\<\?\=.*?\?\>|\<\?.*?\?\>|\<%.*?%\>'.
                '|\<script\s+[^>]*?language\s*\=\s*(["\'])?php\\1[^>]*\>.*?\<\s*\/\s*script\s*\>'.

            ')'.// Close 'any of these'.
            '/uis'; // End pattern.
        return preg_replace($regex, '', $string);
    }
Strips PHP tags.

@since 150424 Initial release.

@param mixed $value Any input value.

@return string|array|object Output value.