Example #1
0
    function _htmlentities(&$string, $key)
    {
        $string = htmlentities($string, ENT_COMPAT, 'UTF-8');
    }
    /**
     * array_walk callback method for trim()
     *
     * @static
     * @access private
     * @param string $string (required): the string to update
     * @param mixed $key (ignored): the array key of the string (not needed but passed automatically by array_walk)
     */
    function _trim(&$string, $key)
    {
        $string = trim($string);
    }
    /**
     * array_walk callback method for stripslashes()
     *
     * @static
     * @access private
     * @param string $string (required): the string to update
     * @param mixed $key (ignored): the array key of the string (not needed but passed automatically by array_walk)
     */
    function _stripslashes(&$string, $key)
    {
        $string = stripslashes($string);
    }
}
DekoBoko::bootstrap();