<?php
$value = time();
//在这里设置一个名为test的Cookie
setcookie("test",$value,time()+3600);
if (isset($_COOKIE['test'])) {
echo 'success';
}
$value = time();
//在这里设置一个名为test的Cookie
setcookie("test",$value,time()+3600);
if (isset($_COOKIE['test'])) {
echo 'success';
}
2015-01-26
<?php
$subject = "my email is spark@imooc.com";
//在这里补充代码,实现正则匹配,并输出邮箱地址
$pp = "/\w+\@\w+\.com/";
preg_match($pp, $subject, $matches);
echo $matches[0];
$subject = "my email is spark@imooc.com";
//在这里补充代码,实现正则匹配,并输出邮箱地址
$pp = "/\w+\@\w+\.com/";
preg_match($pp, $subject, $matches);
echo $matches[0];
2015-01-26