真坑,给的地址不对
$filename = '/data/webroot/usercode/code/resource/test.txt';
//编写代码读取$filename的文件内容
$content=file_get_contents($filename);
echo $content;
$filename = '/data/webroot/usercode/code/resource/test.txt';
//编写代码读取$filename的文件内容
$content=file_get_contents($filename);
echo $content;
2015-07-27
<?php
$subject = "my email is spark@imooc.com";
//在这里补充代码,实现正则匹配,并输出邮箱地址
$p='/is(.*)/';
preg_match($p,$subject,$match);
echo trim($match[1]);
$subject = "my email is spark@imooc.com";
//在这里补充代码,实现正则匹配,并输出邮箱地址
$p='/is(.*)/';
preg_match($p,$subject,$match);
echo trim($match[1]);
2015-07-26