我試圖從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