![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 226 Pomógł: 1 Dołączył: 13.05.2008 Ostrzeżenie: (0%) ![]() ![]() |
Czemu takie wyrażanie zawraca mi w tablicy dwa razy 13 skoro tylko raz występuje ?
Ten post edytował szczabik 29.04.2009, 19:56:29 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 156 Pomógł: 15 Dołączył: 13.09.2003 Skąd: London Ostrzeżenie: (0%) ![]() ![]() |
$matches[0] zwraca ci znaleziony ciag ( <km>13</km> ), a $matches[1] konkretny fragment ( 13 ). <km> przegladarka potraktowala jako html, dlatego nie widzisz.
Z dokumentacji: matches If matches is provided, then it is filled with the results of search. $matches[0] will contain the text that matched the full pattern, $matches[1] will have the text that matched the first captured parenthesized subpattern, and so on. http://pl.php.net/preg_match Ten post edytował gulldarek 29.04.2009, 20:13:13 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 15.10.2025 - 16:16 |