PHP . SU
Программирование на PHP, MySQL и другие веб-технологии
Без описания
Поиск в теме | Версия для печати
Facecontrol
Отправлено: 09 Сентября, 2018 - 22:53:28
Новичок
Покинул форум
Сообщений всего: 46
Дата рег-ции: Нояб. 2010
Помог: 0 раз(а)
Есть такой код
CODE (
html ):
скопировать код в буфер обмена
<td class = "player1" ><a href = "https://www.tennisbetsite.com/head-to-head/margot-yerolymos-vs-maryna-zanevska.html" class = "playerlink" ><span class = "player winner" ><abbr title = "Марго Еролимос" ><font style = "vertical-align: inherit;" ><font style = "vertical-align: inherit;" > Margot Yerolymos</ font ></ font ></ abbr ></ span ></ a ><span class = "country" ><abbr title = "FRA" ><font style = "vertical-align: inherit;" ><font style = "vertical-align: inherit;" > FRA</ font ></ font ></ abbr ></ span ></ td >
Мне нужно получить массив ссылок, но значение после https://www[dot]tennisbetsite[dot]com/head-to-head/ может меняться. Вообщем мне нужно выдрать ссылки между <a href=" и " class="playerlink">
Пытался так
В регулярках не силён. Помогите пожалуйста.
Строитель
Отправлено: 09 Сентября, 2018 - 23:07:10
Участник
Покинул форум
Сообщений всего: 1580
Дата рег-ции: Февр. 2014
Откуда: Украина
Помог: 73 раз(а)
Facecontrol пишет: Вообщем мне нужно выдрать ссылки между <a href=" и " class="playerlink">
Спойлер (Отобразить ) PHP:
скопировать код в буфер обмена
$str = '<td class="player1"><a href="https://www.tennisbetsite.com/head-to-head/margot-yerolymos-vs-maryna-zanevska.html" class="playerlink"><span class="player winner"><abbr title="Марго Еролимос"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Margot Yerolymos</font></font></abbr></span></a><span class="country"><abbr title="FRA"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> FRA</font></font></abbr></span></td>' ;
Facecontrol
Отправлено: 09 Сентября, 2018 - 23:24:24
Новичок
Покинул форум
Сообщений всего: 46
Дата рег-ции: Нояб. 2010
Помог: 0 раз(а)
Строитель пишет: Facecontrol пишет: Вообщем мне нужно выдрать ссылки между <a href=" и " class="playerlink">
Спойлер (Отобразить ) PHP:
скопировать код в буфер обмена
$str = '<td class="player1"><a href="https://www.tennisbetsite.com/head-to-head/margot-yerolymos-vs-maryna-zanevska.html" class="playerlink"><span class="player winner"><abbr title="Марго Еролимос"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Margot Yerolymos</font></font></abbr></span></a><span class="country"><abbr title="FRA"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> FRA</font></font></abbr></span></td>' ;
Я уже понял ошибку
надо было вместо модификатора / сделать #
(Добавление)
но теперь другая проблемма
сделал вывод вот так
А мне вывело в браузерСпойлер (Отобразить ) array(2) { [0]=> array(22) { [0]=> string(113) "" [1]=> string(113) "" [2]=> string(112) "" [3]=> string(112) "" [4]=> string(104) "" [5]=> string(104) "" [6]=> string(113) "" [7]=> string(113) "" [8]=> string(110) "" [9]=> string(110) "" [10]=> string(112) "" [11]=> string(112) "" [12]=> string(116) "" [13]=> string(116) "" [14]=> string(108) "" [15]=> string(108) "" [16]=> string(113) "" [17]=> string(113) "" [18]=> string(119) "" [19]=> string(119) "" [20]=> string(112) "" [21]=> string(112) "" } [1]=> array(22) { [0]=> string(40) "margot-yerolymos-vs-maryna-zanevska.html" [1]=> string(40) "margot-yerolymos-vs-maryna-zanevska.html" [2]=> string(39) "margot-yerolymos-vs-unknown-player.html" [3]=> string(39) "margot-yerolymos-vs-unknown-player.html" [4]=> string(31) "kayla-day-vs-maria-sanchez.html" [5]=> string(31) "kayla-day-vs-maria-sanchez.html" [6]=> string(40) "alexandra-vagramov-vs-asia-muhammad.html" [7]=> string(40) "alexandra-vagramov-vs-asia-muhammad.html" [8]=> string(37) "kayla-day-vs-sesil-karatantcheva.html" [9]=> string(37) "kayla-day-vs-sesil-karatantcheva.html" [10]=> string(39) "anna-zaja-vs-silvia-soler-espinosa.html" [11]=> string(39) "anna-zaja-vs-silvia-soler-espinosa.html" [12]=> string(43) "lorenzo-musetti-vs-thiago-seyboth-wild.html" [13]=> string(43) "lorenzo-musetti-vs-thiago-seyboth-wild.html" [14]=> string(35) "ugo-humbert-vs-enzo-couacaud-2.html" [15]=> string(35) "ugo-humbert-vs-enzo-couacaud-2.html" [16]=> string(40) "corentin-denolly-vs-albano-olivetti.html" [17]=> string(40) "corentin-denolly-vs-albano-olivetti.html" [18]=> string(46) "juan-martin-del-potro-vs-novak-djokovic-2.html" [19]=> string(46) "juan-martin-del-potro-vs-novak-djokovic-2.html" [20]=> string(39) "beatriz-haddad-maia-vs-monica-puig.html" [21]=> string(39) "beatriz-haddad-maia-vs-monica-puig.html" } }
Теперь мне нужно как-то это разбить. И сделать вывод чтоб небыло всяких там string(40) и всякого хлама(Отредактировано автором: 09 Сентября, 2018 - 23:32:31)
Строитель
Отправлено: 09 Сентября, 2018 - 23:44:53
Участник
Покинул форум
Сообщений всего: 1580
Дата рег-ции: Февр. 2014
Откуда: Украина
Помог: 73 раз(а)
Facecontrol , а чем моё решение не устроило?
(Добавление)
Facecontrol пишет: И сделать вывод чтоб небыло всяких там string(40)
- эти
"всякие там" являются служебной информацией, которая выводится функцией var_dump(). Распечатывайте массив в цикле, и тогда вы не увидите служебной инфы.
Facecontrol
Отправлено: 10 Сентября, 2018 - 00:06:28
Новичок
Покинул форум
Сообщений всего: 46
Дата рег-ции: Нояб. 2010
Помог: 0 раз(а)
Строитель пишет: var_export($r);
Я его не пробовал ещё
Facecontrol
Отправлено: 10 Сентября, 2018 - 00:11:03
Новичок
Покинул форум
Сообщений всего: 46
Дата рег-ции: Нояб. 2010
Помог: 0 раз(а)
извиняюсь. Я просто не на тот пост ответил. уже засыпаю
Спойлер (Отобразить ) array ( 0 => array ( 0 => '', 1 => '', 2 => '', 3 => '', 4 => '', 5 => '', 6 => '', 7 => '', 8 => '', 9 => '', 10 => '', 11 => '', 12 => '', 13 => '', 14 => '', 15 => '', 16 => '', 17 => '', 18 => '', 19 => '', 20 => '', 21 => '', ), 1 => array ( 0 => 'margot-yerolymos-vs-maryna-zanevska.html', 1 => 'margot-yerolymos-vs-maryna-zanevska.html', 2 => 'margot-yerolymos-vs-unknown-player.html', 3 => 'margot-yerolymos-vs-unknown-player.html', 4 => 'kayla-day-vs-maria-sanchez.html', 5 => 'kayla-day-vs-maria-sanchez.html', 6 => 'alexandra-vagramov-vs-asia-muhammad.html', 7 => 'alexandra-vagramov-vs-asia-muhammad.html', 8 => 'kayla-day-vs-sesil-karatantcheva.html', 9 => 'kayla-day-vs-sesil-karatantcheva.html', 10 => 'anna-zaja-vs-silvia-soler-espinosa.html', 11 => 'anna-zaja-vs-silvia-soler-espinosa.html', 12 => 'lorenzo-musetti-vs-thiago-seyboth-wild.html', 13 => 'lorenzo-musetti-vs-thiago-seyboth-wild.html', 14 => 'ugo-humbert-vs-enzo-couacaud-2.html', 15 => 'ugo-humbert-vs-enzo-couacaud-2.html', 16 => 'corentin-denolly-vs-albano-olivetti.html', 17 => 'corentin-denolly-vs-albano-olivetti.html', 18 => 'juan-martin-del-potro-vs-novak-djokovic-2.html', 19 => 'juan-martin-del-potro-vs-novak-djokovic-2.html', 20 => 'beatriz-haddad-maia-vs-monica-puig.html', 21 => 'beatriz-haddad-maia-vs-monica-puig.html', ), )
(Отредактировано автором: 10 Сентября, 2018 - 00:12:04)
Строитель
Отправлено: 10 Сентября, 2018 - 00:14:48
Участник
Покинул форум
Сообщений всего: 1580
Дата рег-ции: Февр. 2014
Откуда: Украина
Помог: 73 раз(а)
Facecontrol Спойлер (Отобразить ) PHP:
скопировать код в буфер обмена
$links = array ( 0
=> array ( 0 => '' , 1 => '' , 2 => '' , 3 => '' , 4 => '' , 5 => '' , 6 => '' , 7 => '' , 8 => '' , 9 => '' , 10 => '' , 11 => '' , 12 => '' , 13 => '' , 14 => '' , 15 => '' , 16 => '' , 17 => '' , 18 => '' , 19 => '' , 20 => '' , 21 => '' , ) , 1
=> array ( 0 => 'margot-yerolymos-vs-maryna-zanevska.html' , 1 => 'margot-yerolymos-vs-maryna-zanevska.html' , 2 => 'margot-yerolymos-vs-unknown-player.html' , 3 => 'margot-yerolymos-vs-unknown-player.html' , 4 => 'kayla-day-vs-maria-sanchez.html' , 5 => 'kayla-day-vs-maria-sanchez.html' , 6 => 'alexandra-vagramov-vs-asia-muhammad.html' , 7 => 'alexandra-vagramov-vs-asia-muhammad.html' , 8 => 'kayla-day-vs-sesil-karatantcheva.html' , 9 => 'kayla-day-vs-sesil-karatantcheva.html' , 10 => 'anna-zaja-vs-silvia-soler-espinosa.html' , 11 => 'anna-zaja-vs-silvia-soler-espinosa.html' , 12 => 'lorenzo-musetti-vs-thiago-seyboth-wild.html' , 13 => 'lorenzo-musetti-vs-thiago-seyboth-wild.html' , 14 => 'ugo-humbert-vs-enzo-couacaud-2.html' , 15 => 'ugo-humbert-vs-enzo-couacaud-2.html' , 16 => 'corentin-denolly-vs-albano-olivetti.html' , 17 => 'corentin-denolly-vs-albano-olivetti.html' , 18 => 'juan-martin-del-potro-vs-novak-djokovic-2.html' , 19 => 'juan-martin-del-potro-vs-novak-djokovic-2.html' , 20 => 'beatriz-haddad-maia-vs-monica-puig.html' , 21 => 'beatriz-haddad-maia-vs-monica-puig.html' , ) , ) ;
foreach ( $links [ 1] as $link ) {
echo "$link <br>" ;
}
Facecontrol
Отправлено: 10 Сентября, 2018 - 00:46:55
Новичок
Покинул форум
Сообщений всего: 46
Дата рег-ции: Нояб. 2010
Помог: 0 раз(а)
Строитель пишет: Facecontrol Спойлер (Отобразить ) PHP:
скопировать код в буфер обмена
$links = array ( 0
=> array ( 0 => '' , 1 => '' , 2 => '' , 3 => '' , 4 => '' , 5 => '' , 6 => '' , 7 => '' , 8 => '' , 9 => '' , 10 => '' , 11 => '' , 12 => '' , 13 => '' , 14 => '' , 15 => '' , 16 => '' , 17 => '' , 18 => '' , 19 => '' , 20 => '' , 21 => '' , ) , 1
=> array ( 0 => 'margot-yerolymos-vs-maryna-zanevska.html' , 1 => 'margot-yerolymos-vs-maryna-zanevska.html' , 2 => 'margot-yerolymos-vs-unknown-player.html' , 3 => 'margot-yerolymos-vs-unknown-player.html' , 4 => 'kayla-day-vs-maria-sanchez.html' , 5 => 'kayla-day-vs-maria-sanchez.html' , 6 => 'alexandra-vagramov-vs-asia-muhammad.html' , 7 => 'alexandra-vagramov-vs-asia-muhammad.html' , 8 => 'kayla-day-vs-sesil-karatantcheva.html' , 9 => 'kayla-day-vs-sesil-karatantcheva.html' , 10 => 'anna-zaja-vs-silvia-soler-espinosa.html' , 11 => 'anna-zaja-vs-silvia-soler-espinosa.html' , 12 => 'lorenzo-musetti-vs-thiago-seyboth-wild.html' , 13 => 'lorenzo-musetti-vs-thiago-seyboth-wild.html' , 14 => 'ugo-humbert-vs-enzo-couacaud-2.html' , 15 => 'ugo-humbert-vs-enzo-couacaud-2.html' , 16 => 'corentin-denolly-vs-albano-olivetti.html' , 17 => 'corentin-denolly-vs-albano-olivetti.html' , 18 => 'juan-martin-del-potro-vs-novak-djokovic-2.html' , 19 => 'juan-martin-del-potro-vs-novak-djokovic-2.html' , 20 => 'beatriz-haddad-maia-vs-monica-puig.html' , 21 => 'beatriz-haddad-maia-vs-monica-puig.html' , ) , ) ;
foreach ( $links [ 1] as $link ) {
echo "$link <br>" ;
}
Спасибо получилось. Но теперь выдало вот такСпойлер (Отобразить ) margot-yerolymos-vs-maryna-zanevska.html
margot-yerolymos-vs-maryna-zanev ska.html
margot-yerolymos-vs-unknown-player.html
margot-yerolymos-vs-unknown-play er.html
kayla-day-vs-maria-sanchez.html
kayla-day-vs-maria-sanchez.html
alexandra-vagramov-vs-asia-muham mad.html
alexandra-vagramov-vs-asia-muhammad.html
kayla-day-vs-sesil-karatantcheva .html
kayla-day-vs-sesil-karatantcheva.html
anna-zaja-vs-silvia-soler-espino sa.html
anna-zaja-vs-silvia-soler-espinosa.html
lorenzo-musetti-vs-thiago-seybot h-wild.html
lorenzo-musetti-vs-thiago-seyboth-wild.html
ugo-humbert-vs-enzo-couacaud-2.h tml
ugo-humbert-vs-enzo-couacaud-2.html
corentin-denolly-vs-albano-olive tti.html
corentin-denolly-vs-albano-olivetti.html
juan-martin-del-potro-vs-novak-d jokovic-2.html
juan-martin-del-potro-vs-novak-djokovic-2.html
beatriz-haddad-maia-vs-monica-pu ig.html
beatriz-haddad-maia-vs-monica-puig.html
anna-schmiedlova-vs-yulia-putint seva.html
anna-schmiedlova-vs-yulia-putintseva.html
saisai-zheng-vs-alison-riske.htm l
saisai-zheng-vs-alison-riske.html
А я бы хотел чтоб каждый результат записался отдельно в переменную. Или опять их массивом выводить, или циклом перебрать?
Нужно например чтоб так
Думаю что нужно всё поместить в массив а потом перебирать циклом, но как? Плюс количество значений может меняться, и они выводятся с повтором. тоестьСпойлер (Отобразить ) margot-yerolymos-vs-maryna-zanevska.html
margot-yerolymos-vs-maryna-zanev ska.html
margot-yerolymos-vs-unknown-player.html
margot-yerolymos-vs-unknown-play er.html
kayla-day-vs-maria-sanchez.html
kayla-day-vs-maria-sanchez.html
Facecontrol
Отправлено: 10 Сентября, 2018 - 13:48:43
Новичок
Покинул форум
Сообщений всего: 46
Дата рег-ции: Нояб. 2010
Помог: 0 раз(а)
Facecontrol пишет: Строитель пишет: Facecontrol Спойлер (Отобразить ) PHP:
скопировать код в буфер обмена
$links = array ( 0
=> array ( 0 => '' , 1 => '' , 2 => '' , 3 => '' , 4 => '' , 5 => '' , 6 => '' , 7 => '' , 8 => '' , 9 => '' , 10 => '' , 11 => '' , 12 => '' , 13 => '' , 14 => '' , 15 => '' , 16 => '' , 17 => '' , 18 => '' , 19 => '' , 20 => '' , 21 => '' , ) , 1
=> array ( 0 => 'margot-yerolymos-vs-maryna-zanevska.html' , 1 => 'margot-yerolymos-vs-maryna-zanevska.html' , 2 => 'margot-yerolymos-vs-unknown-player.html' , 3 => 'margot-yerolymos-vs-unknown-player.html' , 4 => 'kayla-day-vs-maria-sanchez.html' , 5 => 'kayla-day-vs-maria-sanchez.html' , 6 => 'alexandra-vagramov-vs-asia-muhammad.html' , 7 => 'alexandra-vagramov-vs-asia-muhammad.html' , 8 => 'kayla-day-vs-sesil-karatantcheva.html' , 9 => 'kayla-day-vs-sesil-karatantcheva.html' , 10 => 'anna-zaja-vs-silvia-soler-espinosa.html' , 11 => 'anna-zaja-vs-silvia-soler-espinosa.html' , 12 => 'lorenzo-musetti-vs-thiago-seyboth-wild.html' , 13 => 'lorenzo-musetti-vs-thiago-seyboth-wild.html' , 14 => 'ugo-humbert-vs-enzo-couacaud-2.html' , 15 => 'ugo-humbert-vs-enzo-couacaud-2.html' , 16 => 'corentin-denolly-vs-albano-olivetti.html' , 17 => 'corentin-denolly-vs-albano-olivetti.html' , 18 => 'juan-martin-del-potro-vs-novak-djokovic-2.html' , 19 => 'juan-martin-del-potro-vs-novak-djokovic-2.html' , 20 => 'beatriz-haddad-maia-vs-monica-puig.html' , 21 => 'beatriz-haddad-maia-vs-monica-puig.html' , ) , ) ;
foreach ( $links [ 1] as $link ) {
echo "$link <br>" ;
}
Спасибо получилось. Но теперь выдало вот так
Спойлер (Отобразить ) margot-yerolymos-vs-maryna-zanevska.html
margot-yerolymos-vs-maryna-zanev ska.html
margot-yerolymos-vs-unknown-player.html
margot-yerolymos-vs-unknown-play er.html
kayla-day-vs-maria-sanchez.html
kayla-day-vs-maria-sanchez.html
alexandra-vagramov-vs-asia-muham mad.html
alexandra-vagramov-vs-asia-muhammad.html
kayla-day-vs-sesil-karatantcheva .html
kayla-day-vs-sesil-karatantcheva.html
anna-zaja-vs-silvia-soler-espino sa.html
anna-zaja-vs-silvia-soler-espinosa.html
lorenzo-musetti-vs-thiago-seybot h-wild.html
lorenzo-musetti-vs-thiago-seyboth-wild.html
ugo-humbert-vs-enzo-couacaud-2.h tml
ugo-humbert-vs-enzo-couacaud-2.html
corentin-denolly-vs-albano-olive tti.html
corentin-denolly-vs-albano-olivetti.html
juan-martin-del-potro-vs-novak-d jokovic-2.html
juan-martin-del-potro-vs-novak-djokovic-2.html
beatriz-haddad-maia-vs-monica-pu ig.html
beatriz-haddad-maia-vs-monica-puig.html
anna-schmiedlova-vs-yulia-putint seva.html
anna-schmiedlova-vs-yulia-putintseva.html
saisai-zheng-vs-alison-riske.htm l
saisai-zheng-vs-alison-riske.html
А я бы хотел чтоб каждый результат записался отдельно в переменную. Или опять их массивом выводить, или циклом перебрать?
Нужно например чтоб так
Думаю что нужно всё поместить в массив а потом перебирать циклом, но как? Плюс количество значений может меняться, и они выводятся с повтором. тоесть
Спойлер (Отобразить ) margot-yerolymos-vs-maryna-zanevska.html
margot-yerolymos-vs-maryna-zanev ska.html
margot-yerolymos-vs-unknown-player.html
margot-yerolymos-vs-unknown-play er.html
kayla-day-vs-maria-sanchez.html
kayla-day-vs-maria-sanchez.html
Ну например как удалить повторения значений, и как их посчитать я понял. Сделал это так
А вот как теперь их вывести чтоб например $r[1][0]; вывело одно значение $r[1][1]; вывело другое и так далее. Пробовал сделать так
Вроде получилось. Но теперь выдало всё в одну строку вроде.Спойлер (Отобразить ) tomas-farjat-vs-nicolas-alvarez.htmltomas-farjat-vs-nicolas-alvarez.htmlarklon-huertas-del-pino-vs-gonzalo-villanueva.htmlarklon-huertas-del-pino-vs-gonzalo-villanueva.htmlarklon-huertas-del-pino-vs-gonzalo-villanueva.htmlarklon-huertas-del-pino-vs-gonzalo-villanueva.htmlliam-draxl-vs-jacob-dunbar.htmlliam-draxl-vs-jacob-dunbar.htmlnick-lagaev-vs-junior-a.-ore.htmlnick-lagaev-vs-junior-a.-ore.htmlnoe-khlif-vs-lloyd-glasspool.htmlnoe-khlif-vs-lloyd-glasspool.htmlaleksandar-kovacevic-vs-martin-beran.htmlaleksandar-kovacevic-vs-martin-beran.htmlalberto-romero-de-avila-senise-vs-marcos-giraldi-requena.htmlalberto-romero-de-avila-senise-vs-marcos-giraldi-requena.htmlsiqi-cao-vs-martina-colmegna.htmlsiqi-cao-vs-martina-colmegna.htmlcarolina-m.-alves-vs-nastassja-burnett.htmlcarolina-m.-alves-vs-nastassja-burnett.htmlshuyue-ma-vs-yana-morderger.htmlshuyue-ma-vs-yana-morderger.htmlleonie-kung-vs-federica-bilardo-2.htmlleonie-kung-vs-federica-bilardo-2.htmltatiana-pieri-vs-tayisiya-morderger.htmltatiana-pieri-vs-tayisiya-morderger.htmlsusan-bandecchi-vs-chieh-yu-hsu.htmlsusan-bandecchi-vs-chieh-yu-hsu.htmldalila-spiteri-vs-lucia-bronzetti-2.htmldalila-spiteri-vs-lucia-bronzetti-2.htmlchanelle-van-nguyen-vs-martina-caregaro.htmlchanelle-van-nguyen-vs-martina-caregaro.htmlrozalina-youseva-vs-amina-anshba.htmlrozalina-youseva-vs-amina-anshba.htmlmargot-yerolymos-vs-maria-herazo-gonzalez.html
Facecontrol
Отправлено: 10 Сентября, 2018 - 14:58:58
Новичок
Покинул форум
Сообщений всего: 46
Дата рег-ции: Нояб. 2010
Помог: 0 раз(а)
Строитель пишет: Facecontrol , а посмотреть как было у меня в примере, не?
да вроде получилось так
ВыдалоСпойлер (Отобразить ) stella-wiesemann-vs-ana-conde-vendrell.html
stella-wiesemann-vs-ana-conde-ve ndrell.html tomas
-farjat-vs-nicolas-alvarez.html tomas
-farjat-vs-nicolas-alvarez.html
francisco- cerundolo-против-Коннер-Хуэртас- дель-pino.html
франциско-cerundolo-против-Конне р-Хуэртас-дель-pino.html
arklon-Хуэртас-дель-пино-против- Гонсало-villanueva.html
arklon-Хуэртас-дель-пино -vs-gonzalo-villanueva.html
arklon-huertas-del-pino-vs-gonza lo-villanueva.html
arklon-huertas-del-pino-vs-gonza lo-villanueva.html
liam-draxl-vs-jacob-dunbar.html
liam -draxl-vs-jacob-dunbar.html
nick-lagaev-vs-junior-a.-ore.htm l
nick-lagaev-vs-junior-a.-ore.htm l
noe-khlif-vs-lloyd-glasspool.htm l
noe-khlif-vs-lloyd-glasspool.html
aleksandar-kovacevic-vs-martin-b eran.html
aleksandar-kovacevic-vs-martin-b eran.html
alberto-romero-de-avila-senise-v s-marcos-giraldi-requena .html
alberto-romero-de-avila-senise-v s-marcos-giraldi-requena.html
gianmarco-amatiste-vs-geoffrey-b lancaneaux.html
gianmarco-amatiste-vs-geoffrey-b lancaneaux.html
siqi-cao-vs-martina -colmegna.html
siqi-cao-vs-martina-colmegna.htm l
carolina-m.-alves-vs-nastassja-b urnett.html
carolina- m.-alves -vs-nastassja-burnett.html
shuyue-ma-vs-yana -morderger.html
shuyue-ma-vs-yana-morderger.html
leonie-kung-vs-federica-bilardo- 2.html
leonie-kung-vs-federica-bilardo- 2.html
tatiana-pieri-vs-tayisiya-morderger.html
tatiana-pieri-vs-tayisiya-morder ger.html
susan-bandecchi-vs-chieh-yu-hsu. html
susan-bandecchi-vs-chieh-yu-hsu. html
dalila- spiteri-vs-lucia-bronzetti-2.htm l
dalila-spiteri-vs-lucia-bronzett i-2.html
chanelle-van-nguyen-vs-martina-c aregaro.html
chanelle-van-nguyen-vs-martina-c aregaro.html
margot-yerolymos-vs-maria-herazo -gonzalez.html
margot-yerolymos-vs-maria-herazo -gonzalez.html
helene-scholsen-vs-sherazad-reix .html
helene-scholsen-vs-sherazad-reix .html
lucie- wargnier-vs-olga-saez-larra.html
lucie-wargnier-vs-olga-saez-larr a.html
eva-guerrero-alvarez-vs-mallauri e-noel-2.html
eva-guerrero-alvarez-vs-mallauri e-noel -2.html
maxence-bertimon-vs-pierre-delag e.html
maxence-bertimon-vs-pierre-delag e.html arthur
-reymond-vs-hugo-schott.html arthur
-reymond-vs-hugo-schott.html arthur
-bouquier-vs- eduardo-struvay.html arthur
-bouquier-vs-eduardo-struvay.htm l
giuseppe-tresca-1998-vs-enrico-d alla-valle.html
giuseppe-tresca-1998-vs-enrico-d alla-valle.html
gibril-diarra- vs-marco-bortolotti.html
gibril-diarra-vs-marco-bortolott i.html
nicolas-parizzia-vs-umberto-giov annini.html
nicolas-parizzia-vs-umberto-giov annini.html
manfred-fellin-vs-walter-trusend i. html
manfred-fellin-vs-walter-trusend i.html
beatriz-haddad-maia-vs-monica-pu ig.html
beatriz-haddad-maia-vs-monica-pu ig.html
heather
-watson-vs-monica -niculescu.html heather -watson-vs-monica-niculescu.html
victoria-duval-vs-madison-brengl e.html
victoria-duval-vs-madison-brengl e.html
jeff-wolf-vs- vincent-millot.html
jeff-wolf-vs-vincent-millot.html
evan-song-vs-bar-tzuf-botzer.htm l
evan-song-vs-bar-tzuf-botzer.htm l
thai-kwiatkowski-vs-james- duckworth-2.html
thai-kwiatkowski-vs-james-duckwo rth-2.html pedro
-martinez-portero-vs-johan-sebas tien-tatlot.html pedro
-martinez-portero-vs-johan-sebas tien-tatlot.html
marko- miladinovic-vs-carlos-berlocq.ht ml marko
-miladinovic-vs-carlos-berlocq.h tml
kenny-de-schepper-vs-simone-bole lli.html
kenny-de-schepper-vs-simone-bolelli.html
А теперь хочу удалить повторения
ВыдалоСпойлер (Отобразить ) Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
строка 33
(Добавление)
Facecontrol пишет: Строитель пишет: Facecontrol , а посмотреть как было у меня в примере, не?
да вроде получилось так
Выдало
Спойлер (Отобразить ) stella-wiesemann-vs-ana-conde-vendrell.html
stella-wiesemann-vs-ana-conde-ve ndrell.html tomas
-farjat-vs-nicolas-alvarez.html tomas
-farjat-vs-nicolas-alvarez.html
francisco- cerundolo-против-Коннер-Хуэртас- дель-pino.html
франциско-cerundolo-против-Конне р-Хуэртас-дель-pino.html
arklon-Хуэртас-дель-пино-против- Гонсало-villanueva.html
arklon-Хуэртас-дель-пино -vs-gonzalo-villanueva.html
arklon-huertas-del-pino-vs-gonza lo-villanueva.html
arklon-huertas-del-pino-vs-gonza lo-villanueva.html
liam-draxl-vs-jacob-dunbar.html
liam -draxl-vs-jacob-dunbar.html
nick-lagaev-vs-junior-a.-ore.htm l
nick-lagaev-vs-junior-a.-ore.htm l
noe-khlif-vs-lloyd-glasspool.htm l
noe-khlif-vs-lloyd-glasspool.html
aleksandar-kovacevic-vs-martin-b eran.html
aleksandar-kovacevic-vs-martin-b eran.html
alberto-romero-de-avila-senise-v s-marcos-giraldi-requena .html
alberto-romero-de-avila-senise-v s-marcos-giraldi-requena.html
gianmarco-amatiste-vs-geoffrey-b lancaneaux.html
gianmarco-amatiste-vs-geoffrey-b lancaneaux.html
siqi-cao-vs-martina -colmegna.html
siqi-cao-vs-martina-colmegna.htm l
carolina-m.-alves-vs-nastassja-b urnett.html
carolina- m.-alves -vs-nastassja-burnett.html
shuyue-ma-vs-yana -morderger.html
shuyue-ma-vs-yana-morderger.html
leonie-kung-vs-federica-bilardo- 2.html
leonie-kung-vs-federica-bilardo- 2.html
tatiana-pieri-vs-tayisiya-morderger.html
tatiana-pieri-vs-tayisiya-morder ger.html
susan-bandecchi-vs-chieh-yu-hsu. html
susan-bandecchi-vs-chieh-yu-hsu. html
dalila- spiteri-vs-lucia-bronzetti-2.htm l
dalila-spiteri-vs-lucia-bronzett i-2.html
chanelle-van-nguyen-vs-martina-c aregaro.html
chanelle-van-nguyen-vs-martina-c aregaro.html
margot-yerolymos-vs-maria-herazo -gonzalez.html
margot-yerolymos-vs-maria-herazo -gonzalez.html
helene-scholsen-vs-sherazad-reix .html
helene-scholsen-vs-sherazad-reix .html
lucie- wargnier-vs-olga-saez-larra.html
lucie-wargnier-vs-olga-saez-larr a.html
eva-guerrero-alvarez-vs-mallauri e-noel-2.html
eva-guerrero-alvarez-vs-mallauri e-noel -2.html
maxence-bertimon-vs-pierre-delag e.html
maxence-bertimon-vs-pierre-delag e.html arthur
-reymond-vs-hugo-schott.html arthur
-reymond-vs-hugo-schott.html arthur
-bouquier-vs- eduardo-struvay.html arthur
-bouquier-vs-eduardo-struvay.htm l
giuseppe-tresca-1998-vs-enrico-d alla-valle.html
giuseppe-tresca-1998-vs-enrico-d alla-valle.html
gibril-diarra- vs-marco-bortolotti.html
gibril-diarra-vs-marco-bortolott i.html
nicolas-parizzia-vs-umberto-giov annini.html
nicolas-parizzia-vs-umberto-giov annini.html
manfred-fellin-vs-walter-trusend i. html
manfred-fellin-vs-walter-trusend i.html
beatriz-haddad-maia-vs-monica-pu ig.html
beatriz-haddad-maia-vs-monica-pu ig.html
heather
-watson-vs-monica -niculescu.html heather -watson-vs-monica-niculescu.html
victoria-duval-vs-madison-brengl e.html
victoria-duval-vs-madison-brengl e.html
jeff-wolf-vs- vincent-millot.html
jeff-wolf-vs-vincent-millot.html
evan-song-vs-bar-tzuf-botzer.htm l
evan-song-vs-bar-tzuf-botzer.htm l
thai-kwiatkowski-vs-james- duckworth-2.html
thai-kwiatkowski-vs-james-duckwo rth-2.html pedro
-martinez-portero-vs-johan-sebas tien-tatlot.html pedro
-martinez-portero-vs-johan-sebas tien-tatlot.html
marko- miladinovic-vs-carlos-berlocq.ht ml marko
-miladinovic-vs-carlos-berlocq.h tml
kenny-de-schepper-vs-simone-bole lli.html
kenny-de-schepper-vs-simone-bolelli.html
А теперь хочу удалить повторения
ВыдалоСпойлер (Отобразить ) Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
Warning: array_unique() expects parameter 1 to be array, string given in Z:\home\test1.ru\www\tenis\7.php on line 33
строка 33
Всё я понял в чём ошибка. Нужно было сделать так
Facecontrol
Отправлено: 10 Сентября, 2018 - 20:10:00
Новичок
Покинул форум
Сообщений всего: 46
Дата рег-ции: Нояб. 2010
Помог: 0 раз(а)
Так с тем вроде разобрался. Думал дальше легче пойдёт. Неугадал
Вообщем теперь нужно составить какую-то сложную регулярку. Есть два блока
Спойлер (Отобразить ) PHP:
скопировать код в буфер обмена
< div class = "first-team" >
< table class = "games" >< thead>< tr>< th class = "team" > Team</ th>< th class = "center" >< abbr title= "Results" > Res.</ abbr></ th>< th class = "center" >< abbr title= "Round" > Rnd.</ abbr></ th>< th class = "left" > Tournament</ th>< th class = "surf" >< abbr title= "Surface" > Surf.</ abbr></ th>< th class = "date" > Date</ th></ tr></ thead>< tbody>< tr class = "odd" >< td class = "team" >< abbr title= "Liam Draxl loose" >< img src= "/components/com_mvx_trdb/themes/default/tables/last10games/icon-lost.gif" class = "icon" alt= "Liam Draxl loose" ></ abbr>& nbsp;< a href= "index.php?option=com_mvx_trdb&type=playerinfo&playerid=18365&association=A&Itemid=29" class = "playerlink" >< abbr title= "Pavel Krainik" > P. Krainik</ abbr></ a>& nbsp;< span class = "seed" > ( 6) </ span> </ td>< td class = "center" >< abbr title= "6-4 6-7(8) 7-5 " >< a href= "https://www.tennisbetsite.com/index.php?option=com_mvx_trdb&Itemid=29&association=A&id1=53532&id2=18365&tid=15414&type=gameinfo" > 1: 2</ a></ abbr></ td>< td class = "center" >< abbr title= "First" > 1< sup> st</ sup></ abbr></ td>< td class = "tournament" >< a href= "https://www.tennisbetsite.com/index.php?option=com_mvx_trdb&Itemid=29&assoc=atp&id=15414&type=tourdetails" >< abbr title= "Canada" >< img src= "https://www.tennisbetsite.com/images/flags/CAN.gif" alt= "Canada" class = "flag" width= "16" height= "11" ></ abbr>< abbr title= "Canada F6 (Niagara)" >< span class = "text" > Canada</ span></ abbr></ a></ td>< td class = "surf" >< div class = "I_hard" > I. hard</ div></ td>< td class = "date" >< abbr title= "September, 04 2018" > 04/ 09</ abbr></ td></ tr>< tr class = "even" >< td class = "team" >< abbr title= "Liam Draxl loose" >< img src= "/components/com_mvx_trdb/themes/default/tables/last10games/icon-lost.gif" class = "icon" alt= "Liam Draxl loose" ></ abbr>& nbsp;< a href= "index.php?option=com_mvx_trdb&type=playerinfo&playerid=25539&association=atp&Itemid=29" class = "playerlink" >< abbr title= "Shintaro Imai" > S. Imai</ abbr></ a></ td>< td class = "center" >< abbr title= "6-4 6-2 " >< a href= "https://www.tennisbetsite.com/index.php?option=com_mvx_trdb&Itemid=29&association=A&id1=53532&id2=25539&tid=15210&type=gameinfo" > 0: 2</ a></ abbr></ td>< td class = "center" >< abbr title= "q-First" > q1</ abbr></ td>< td class = "tournament" >< a href= "https://www.tennisbetsite.com/index.php?option=com_mvx_trdb&Itemid=29&assoc=atp&id=15210&type=tourdetails" >< abbr title= "Canada" >< img src= "https://www.tennisbetsite.com/images/flags/CAN.gif" alt= "Canada" class = "flag" width= "16" height= "11" ></ abbr>< abbr title= "Granby Challenger" >< span class = "text" > Granby</ span></ abbr></ a></ td>< td class = "surf" >< div class = "Hard" > Hard</ div></ td>< td class = "date" >< abbr title= "July, 21 2018" > 21/ 07</ abbr></ td></ tr>< tr class = "odd" >< td class = "team" >< abbr title= "Liam Draxl loose" >< img src= "/components/com_mvx_trdb/themes/default/tables/last10games/icon-lost.gif" class = "icon" alt= "Liam Draxl loose" ></ abbr>& nbsp;< a href= "index.php?option=com_mvx_trdb&type=playerinfo&playerid=14884&association=atp&Itemid=29" class = "playerlink" >< abbr title= "Ricardo Rodriguez-Pace" > R. R.- Pace</ abbr></ a>& nbsp;< span class = "seed" > ( q) </ span> </ td>< td class = "center" >< abbr title= "6-7(4) 6-1 6-1 " >< a href= "https://www.tennisbetsite.com/index.php?option=com_mvx_trdb&Itemid=29&association=A&id1=53532&id2=14884&tid=15209&type=gameinfo" > 1: 2</ a></ abbr></ td>< td class = "center" >< abbr title= "q-Second" > q2</ abbr></ td>< td class = "tournament" >< a href= "https://www.tennisbetsite.com/index.php?option=com_mvx_trdb&Itemid=29&assoc=atp&id=15209&type=tourdetails" >< abbr title= "Canada" >< img src= "https://www.tennisbetsite.com/images/flags/CAN.gif" alt= "Canada" class = "flag" width= "16" height= "11" ></ abbr>< abbr title= "Gatineau Challenger" >< span class = "text" > Gatineau</ span></ abbr></ a></ td>< td class = "surf" >< div class = "Hard" > Hard</ div></ td>< td class = "date" >< abbr title= "July, 15 2018" > 15/ 07</ abbr></ td></ tr>< tr class = "even" >< td class = "team" >< abbr title= "Liam Draxl wins" >< img src= "/components/com_mvx_trdb/themes/default/tables/last10games/icon-won.gif" class = "icon" alt= "Liam Draxl wins" ></ abbr>& nbsp;< a href= "index.php?option=com_mvx_trdb&type=playerinfo&playerid=21332&association=atp&Itemid=29" class = "playerlink" >< abbr title= "Wishaya Trongcharoenchaikul" > W. Trongcharoenchaikul</ abbr></ a></ td>< td class = "center" >< abbr title= "6-2 6-7(5) 6-2 " >< a href= "https://www.tennisbetsite.com/index.php?option=com_mvx_trdb&Itemid=29&association=A&id1=53532&id2=21332&tid=15209&type=gameinfo" > 2: 1</ a></ abbr></ td>< td class = "center" >< abbr title= "q-First" > q1</ abbr></ td>< td class = "tournament" >< a href= "https://www.tennisbetsite.com/index.php?option=com_mvx_trdb&Itemid=29&assoc=atp&id=15209&type=tourdetails" >< abbr title= "Canada" >< img src= "https://www.tennisbetsite.com/images/flags/CAN.gif" alt= "Canada" class = "flag" width= "16" height= "11" ></ abbr>< abbr title= "Gatineau Challenger" >< span class = "text" > Gatineau</ span></ abbr></ a></ td>< td class = "surf" >< div class = "Hard" > Hard</ div></ td>< td class = "date" >< abbr title= "July, 14 2018" > 14/ 07</ abbr></ td></ tr>< tr class = "odd" >< td class = "team" >< abbr title= "Liam Draxl loose" >< img src= "/components/com_mvx_trdb/themes/default/tables/last10games/icon-lost.gif" class = "icon" alt= "Liam Draxl loose" ></ abbr>& nbsp;< a href= "index.php?option=com_mvx_trdb&type=playerinfo&playerid=60637&association=atp&Itemid=29" class = "playerlink" >< abbr title= "Matthew Terry" > M. Terry</ abbr></ a></ td>< td class = "center" >< abbr title= "7-5 3-6 6-3 " >< a href= "https://www.tennisbetsite.com/index.php?option=com_mvx_trdb&Itemid=29&association=A&id1=60637&id2=53532&tid=15245&type=gameinfo" > 1: 2</ a></ abbr></ td>< td class = "center" >< abbr title= "q-Second" > q2</ abbr></ td>< td class = "tournament" >< a href= "https://www.tennisbetsite.com/index.php?option=com_mvx_trdb&Itemid=29&assoc=atp&id=15245&type=tourdetails" >< abbr title= "United States" >< img src= "https://www.tennisbetsite.com/images/flags/USA.gif" alt= "United States" class = "flag" width= "16" height= "11" ></ abbr>< abbr title= "USA F18 (Pittsburgh)" >< span class = "text" > USA</ span></ abbr></ a></ td>< td class = "surf" >< div class = "Clay" > Clay</ div></ td>< td class = "date" >< abbr title= "June, 26 2018" > 26/ 06</ abbr></ td></ tr>< tr class = "even" >< td class = "team" >< abbr title= "Liam Draxl wins" >< img src= "/components/com_mvx_trdb/themes/default/tables/last10games/icon-won.gif" class = "icon" alt= "Liam Draxl wins" ></ abbr>& nbsp;< a href= "index.php?option=com_mvx_trdb&type=playerinfo&playerid=32720&association=atp&Itemid=29" class = "playerlink" >< abbr title= "Caleb Troy" > C. Troy</ abbr></ a></ td>< td class = "center" >< abbr title= "6-3 6-2 " >< a href= "https://www.tennisbetsite.com/index.php?option=com_mvx_trdb&Itemid=29&association=A&id1=53532&id2=32720&tid=15245&type=gameinfo" > 2: 0</ a></ abbr></ td>< td class = "center" >< abbr title= "q-First" > q1</ abbr></ td>< td class = "tournament" >< a href= "https://www.tennisbetsite.com/index.php?option=com_mvx_trdb&Itemid=29&assoc=atp&id=15245&type=tourdetails" >< abbr title= "United States" >< img src= "https://www.tennisbetsite.com/images/flags/USA.gif" alt= "United States" class = "flag" width= "16" height= "11" ></ abbr>< abbr title= "USA F18 (Pittsburgh)" >< span class = "text" > USA</ span></ abbr></ a></ td>< td class = "surf" >< div class = "Clay" > Clay</ div></ td>< td class = "date" >< abbr title= "June, 24 2018" > 24/ 06</ abbr></ td></ tr>< tr class = "odd" >< td class = "team" >< abbr title= "Liam Draxl loose" >< img src= "/components/com_mvx_trdb/themes/default/tables/last10games/icon-lost.gif" class = "icon" alt= "Liam Draxl loose" ></ abbr>& nbsp;< a href= "index.php?option=com_mvx_trdb&type=playerinfo&playerid=29937&association=atp&Itemid=29" class = "playerlink" >< abbr title= "Alex Rybakov" > A. Rybakov</ abbr></ a>& nbsp;< span class = "seed" > ( 5) </ span> </ td>< td class = "center" >< abbr title= "6-3 6-2 " >< a href= "https://www.tennisbetsite.com/index.php?option=com_mvx_trdb&Itemid=29&association=A&id1=53532&id2=29937&tid=15176&type=gameinfo" > 0: 2</ a></ abbr></ td>< td class = "center" >< abbr title= "Second" > 2< sup> nd</ sup></ abbr></ td>< td class = "tournament" >< a href= "https://www.tennisbetsite.com/index.php?option=com_mvx_trdb&Itemid=29&assoc=atp&id=15176&type=tourdetails" >< abbr title= "United States" >< img src= "https://www.tennisbetsite.com/images/flags/USA.gif" alt= "United States" class = "flag" width= "16" height= "11" ></ abbr>< abbr title= "USA F14 (Buffalo)" >< span class = "text" > USA</ span></ abbr></ a></ td>< td class = "surf" >< div class = "Clay" > Clay</ div></ td>< td class = "date" >< abbr title= "June, 14 2018" > 14/ 06</ abbr></ td></ tr>< tr class = "even" >< td class = "team" >< abbr title= "Liam Draxl wins" >< img src= "/components/com_mvx_trdb/themes/default/tables/last10games/icon-won.gif" class = "icon" alt= "Liam Draxl wins" ></ abbr>& nbsp;< a href= "index.php?option=com_mvx_trdb&type=playerinfo&playerid=20700&association=atp&Itemid=29" class = "playerlink" >< abbr title= "Dragos Constantin Ignat" > D. Ignat</ abbr></ a>& nbsp;< span class = "seed" > ( q) </ span> </ td>< td class = "center" >< abbr title= "6-4 6-2 " >< a href= "https://www.tennisbetsite.com/index.php?option=com_mvx_trdb&Itemid=29&association=A&id1=53532&id2=20700&tid=15176&type=gameinfo" > 2: 0</ a></ abbr></ td>< td class = "center" >< abbr title= "First" > 1< sup> st</ sup></ abbr></ td>< td class = "tournament" >< a href= "https://www.tennisbetsite.com/index.php?option=com_mvx_trdb&Itemid=29&assoc=atp&id=15176&type=tourdetails" >< abbr title= "United States" >< img src= "https://www.tennisbetsite.com/images/flags/USA.gif" alt= "United States" class = "flag" width= "16" height= "11" ></ abbr>< abbr title= "USA F14 (Buffalo)" >< span class = "text" > USA</ span></ abbr></ a></ td>< td class = "surf" >< div class = "Clay" > Clay</ div></ td>< td class = "date" >< abbr title= "June, 13 2018" > 13/ 06</ abbr></ td></ tr>< tr class = "odd" >< td class = "team" >< abbr title= "Liam Draxl wins" >< img src= "/components/com_mvx_trdb/themes/default/tables/last10games/icon-won.gif" class = "icon" alt= "Liam Draxl wins" ></ abbr>& nbsp;< a href= "index.php?option=com_mvx_trdb&type=playerinfo&playerid=39042&association=atp&Itemid=29" class = "playerlink" >< abbr title= "Alexander Knight" > A. Knight</ abbr></ a></ td>< td class = "center" >< abbr title= "6-4 6-7(3) 6-1 " >< a href= "https://www.tennisbetsite.com/index.php?option=com_mvx_trdb&Itemid=29&association=A&id1=53532&id2=39042&tid=15176&type=gameinfo" > 2: 1</ a></ abbr></ td>< td class = "center" >< abbr title= "Qualifying" > Q.</ abbr></ td>< td class = "tournament" >< a href= "https://www.tennisbetsite.com/index.php?option=com_mvx_trdb&Itemid=29&assoc=atp&id=15176&type=tourdetails" >< abbr title= "United States" >< img src= "https://www.tennisbetsite.com/images/flags/USA.gif" alt= "United States" class = "flag" width= "16" height= "11" ></ abbr>< abbr title= "USA F14 (Buffalo)" >< span class = "text" > USA</ span></ abbr></ a></ td>< td class = "surf" >< div class = "Clay" > Clay</ div></ td>< td class = "date" >< abbr title= "June, 11 2018" > 11/ 06</ abbr></ td></ tr>< tr class = "even" >< td class = "team" >< abbr title= "Liam Draxl wins" >< img src= "/components/com_mvx_trdb/themes/default/tables/last10games/icon-won.gif" class = "icon" alt= "Liam Draxl wins" ></ abbr>& nbsp;< a href= "index.php?option=com_mvx_trdb&type=playerinfo&playerid=55970&association=atp&Itemid=29" class = "playerlink" >< abbr title= "Sasha Pachnev" > S. Pachnev</ abbr></ a></ td>< td class = "center" >< abbr title= "6-0 6-1 " >< a href= "https://www.tennisbetsite.com/index.php?option=com_mvx_trdb&Itemid=29&association=A&id1=55970&id2=53532&tid=15176&type=gameinfo" > 2: 0</ a></ abbr></ td>< td class = "center" >< abbr title= "q-Second" > q2</ abbr></ td>< td class = "tournament" >< a href= "https://www.tennisbetsite.com/index.php?option=com_mvx_trdb&Itemid=29&assoc=atp&id=15176&type=tourdetails" >< abbr title= "United States" >< img src= "https://www.tennisbetsite.com/images/flags/USA.gif" alt= "United States" class = "flag" width= "16" height= "11" ></ abbr>< abbr title= "USA F14 (Buffalo)" >< span class = "text" > USA</ span></ abbr></ a></ td>< td class = "surf" >< div class = "Clay" > Clay</ div></ td>< td class = "date" >< abbr title= "June, 11 2018" > 11 / 06 </ abbr></ td></ tr></ tbody></ table></ div>
и подобный блок только вместо
так
вообщем нужно найти в каждом блоке три самые первые ссылки такого видаСпойлер (Отобразить ) PHP:
скопировать код в буфер обмена
< a href= "https://www.tennisbetsite.com/index.php?option=com_mvx_trdb&Itemid=29&association=A&id1=53532&id2=18365&tid=15414&type=gameinfo" > 1 : 2 </ a>
но при этом нужно проверить есть ли слово "ret.- " в подобном коде
Спойлер (Отобразить ) PHP:
скопировать код в буфер обмена
< abbr title= "6-4 6-7 (8) 7-5 " >< a href= "https://www.tennisbetsite.com/index.php?option=com_mvx_trdb&Itemid=29&association=A&id1=53532&id2=18365&tid=15414&type=gameinfo" >< font style= "vertical-align: inherit;" >< font style= "vertical-align: inherit;" > 1 : 2 </ font></ font></ a></ abbr>
а конкретнее здесь может стоять например так <abbr title="6-4 6-7 (8) 7-5 ret.- ">
и если оно присутствует то эту ссылку нужно пропустить, и взять следующую которая находится в подобном кодеСпойлер (Отобразить ) PHP:
скопировать код в буфер обмена
< abbr title= "6-4 6-7 (8) 7-5 " >< a href= "https://www.tennisbetsite.com/index.php?option=com_mvx_trdb&Itemid=29&association=A&id1=53532&id2=18365&tid=15414&type=gameinfo" >< font style= "vertical-align: inherit;" >< font style= "vertical-align: inherit;" > 1 : 2 </ font></ font></ a></ abbr>
Но важное условия что нужно выбрать три первые ссылки как с одного так и со второго блока.
Помогите пожалуйста с этим разобраться, и я думаю дальше всё получится что хочу я...(Отредактировано автором: 10 Сентября, 2018 - 20:14:51)
Поиск в теме | Версия для печати
Страниц (1): [1]
Сейчас эту тему просматривают: 0 (гостей: 0, зарегистрированных: 0)
« Регулярные выражения »
Все гости форума могут просматривать этот раздел. Только зарегистрированные пользователи могут создавать новые темы в этом разделе. Только зарегистрированные пользователи могут отвечать на сообщения в этом разделе.
Powered by ExBB FM 1.0 RC1. InvisionExBB