Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Preg_replace -> preg_replace_callback
ShutteR
post
Post #1





Grupa: Zarejestrowani
Postów: 33
Pomógł: 0
Dołączył: 21.10.2011

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


Cześć. Jako że 'e' w preg_replace() umiera dlatego potrzebuję przepisać:
Kod
$source = preg_replace("#\[leech\s*=\s*(\S.+?)\s*\](.*?)\[\/leech\]#ie", "\$this->build_url(array('html' => '\\1', 'show' => '\\2', 'leech' => '1'))", $source);

na fukncję preg_replace_callback() aby usunąć błąd z 'e'.
Mógłby ktoś pomóc? Bo się trochę pogubiłem z tym sad.gif

Pozdrawiam

Ten post edytował ShutteR 15.02.2015, 18:21:15
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: 20.08.2025 - 00:07