您好,欢迎访问一九零五行业门户网

匹配字符串解决办法

匹配字符串
如何返回url呢???
传入字符串:
html code莎莉娜美容中心 celina ...
返回字符串
html codehttp://www.macaucentral.com/dev/index.php/beauty-content/6579-celina-beauty-centre
------解决方案--------------------
php code ------解决方案--------------------
preg_match('/href=([^]*)/',$str,$arr);
echo $arr[1];

其它类似信息

推荐信息