<?php
$pattern='/imooc.+123/';
$subject='I love imooc_123123123123132';
$matches=array();
preg_match($pattern, $subject,$matches);
echo '<pre>';;
print_r($matches);
echo'</pre>';
?>
$pattern='/imooc.+123/';
$subject='I love imooc_123123123123132';
$matches=array();
preg_match($pattern, $subject,$matches);
echo '<pre>';;
print_r($matches);
echo'</pre>';
?>
2016-01-09