![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 17 Pomógł: 0 Dołączył: 31.10.2010 Ostrzeżenie: (0%) ![]() ![]() |
Witam. Otóż mam problem z pobraniem treści ze strony gry-online. Dokładnie chodzi o "wymagania sprzętowe", z resztą nie mam problemów.
Napisałem taki o to kod który z innymi danymi działa poprawnie lecz wartości wymagania sprzętowe nie chce pobrać. Pomoże ktoś? Kod preg_match_all('/<span class=\"f_1\">wymagania sprzętowe:<\/span> (.*)<\/td><\/tr>/iU', $value, $matches);
$matches = iconv('windows-1250', 'utf-8', $matches[1][0]); $this->values['wymagania'] = $matches; |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 58 Pomógł: 1 Dołączył: 2.08.2010 Skąd: Dębica Ostrzeżenie: (0%) ![]() ![]() |
Preg_match_all ? Na pewno o to chodziło ?
Preg_Match_All zwraca : Returns the number of full pattern matches (which might be zero), or FALSE if an error occurred. czyli liczbę znalezionych wyników. Użyj Preg_Replace albo Str_Str (IMG:style_emoticons/default/smile.gif) |
|
|
![]() ![]() |
![]() |
Aktualny czas: 3.10.2025 - 15:01 |