您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

匹配字符串解决办法

2024/2/21 6:06:05发布20次查看
匹配字符串
如何返回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];

该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product