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