如何使用php来获取第7和第8 /
之后的刺痛http://uk.soccerway.com/matches/2015/01/01/england/premier-league/stoke-city-fc/manchester-united-fc/1703889/?ICID=HP_MS_01_01
所以上面会抓住英格兰
答案 0 :(得分:1)
类似的东西:
$url = 'http://uk.soccerway.com/matches/2015/01/01/england/premier-league/stoke-city-fc/manchester-united-fc/1703889/?ICID=HP_MS_01_01';
$tokens = explode('/', $url);
echo $tokens[7]; // 'england'
的PHP文档
答案 1 :(得分:0)
php函数爆炸确实做到了 了解更多:http://php.net/manual/en/function.explode.php
答案 2 :(得分:0)
试试这个:
void part(int arr[],int min,int max)
像这样,你可以得到n和m的随机值。
希望这有帮助。
和平!的xD