Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Wyrażenia regularne
lDoran
post
Post #1





Grupa: Zarejestrowani
Postów: 172
Pomógł: 13
Dołączył: 15.11.2009

Ostrzeżenie: (0%)
-----


Chciałbym wyciągnąć wartość value z tego ciągu:
Kod
input type="hidden" id="referredby" name="referredby" value="http://devldoran.wordpress.com/wp-admin/post-new.php"

mój kod:
  1. ...
  2. preg_match('/input type="hidden" id="referredby" name="referredby" value="(.*?)"/', $input, $output);
  3. $this->_aTokens['referredby'] = $output[1];
  4. ...

niestety indeks tablicy $output[1] jest pusty
Kod
array(2) { [0]=>  string(62) "input type="hidden" id="referredby" name="referredby" value=""" [1]=>  string(0) "" }

WTF?! sciana.gif
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 16:18