Welcome Guest, Not a member yet? Register   Sign In
Why do you use the Multibyte String Functions(mb_*)?
#1

[eluser]Unknown[/eluser]
Iconv Functions(iconv_*) is a basic run version PHP5.

The area of ​​non-English is a error!
Why do you take the risk?

class CI_Form_validation
Code:
function min_length($str, $val)
    {
        if (preg_match("/[^0-9]/", $val))
        {
            return FALSE;
        }

        if (function_exists('mb_strlen'))
        {
            return (mb_strlen($str) < $val) ? FALSE : TRUE;
        }

        return (strlen($str) < $val) ? FALSE : TRUE;
    }




Theme © iAndrew 2016 - Forum software by © MyBB