我试图从URL中提取单个位的数据。在url路径中解析url和单独的单词
URL的一个例子是:
http://website.com/product/category-type-section-detail-1234567589
我想提取的数据是从路径type
。
我使用: - parse_url提取路径
/product/category-type-section-detail-1234567589
爆炸到单独的路径
/产物
/类别型截面细节-1234567589
如何提取类型?
爆炸的连字符? – 2015-12-14 21:12:16