public static function strpos($str, $search, $offset = false)
    {
        if (strlen($str) && strlen($search)) {
            if ($offset === false) {
                return mb_strpos($str, $search);
            } else {
                return mb_strpos($str, $search, $offset);
            }
        } else {
            return false;
        }
    }
public static function strpos($str, $search, $offset = false)
    {
        if (strlen($str) && strlen($search)) {
            if ($offset === false) {
                return mb_strpos($str, $search);
            } else {
                return mb_strpos($str, $search, $offset);
            }
        } else {
            return false;
        }
    }
public static function strpos ( $ str , $ search , $ offset = false ) { if ( strlen ( $ str ) && strlen ( $ search ) ) { if ( $ offset === false ) { return mb_strpos ( $ str , $ search ) ; } else { return mb_strpos ( $ str , $ search , $ offset ) ; } } else { return false ; } }
UTF-8 aware alternative to strpos

Find position of first occurrence of a string

@param $str - string String being examined
@param $search - string String being searced for
@param $offset - int Optional, specifies the position from which the search should be performed
@return mixed Number of characters before the first match or FALSE on failure
@see http://www.php.net/strpos
UTF - 8 aware alternative to strpos