$string = 'Lorem ipsum dolor sit amet';

$preg = '/caoyang/';
$status = preg_match($preg, $string,$matches);
echo $status;
var_dump($matches);die;
04-20 15:43