Example #1
0
        echo self::$c, "\n";
        echo " this is static";
    }
    function test1()
    {
        $str = $this->str;
        $a = substr_replace($str, "uuuu", 2, 3);
        $b = str_replace("ell", 'wwww', $str);
        return array($a, $b);
    }
    function __destruct()
    {
    }
}
class iclass
{
}
//echo me::$c;
//me::t();
$a = new me('hello world');
$b = $a->test();
//var_dump($b);
//$af=strrev("meihao");
//var_dump($af);
$d = $a->test1();
//var_dump($d);
$email = "meihao@@126.com";
$url = "http://www.baidu.com";
$r = filter_var($email, FILTER_VALIDATE_EMAIL);
$rr = filter_var($url, FILTER_VALIDATE_URL);
var_dump($r, $rr);