Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]problem z eregi_replace
iksior
post
Post #1





Grupa: Zarejestrowani
Postów: 22
Pomógł: 0
Dołączył: 30.01.2010

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


Witam ! mam problem z eregi_replece. Mój kod wygląda następująco
  1. $text = eregi_replace("\\[im.g]([^\\[]*)\\[/img]","<img src=\"\\1\" border=\"0\">",$text);
  2. $text = eregi_replace("\\*)\]([^\[]*)\","<font color=\"\\1\">\\2</font>",$text);


i niestety mam błąd co jest nie tak ?
[im.g] to oczywiscie zwykly img tylko forum wywalało mi błąd
Go to the top of the page
+Quote Post

Posty w temacie
- iksior   [PHP]problem z eregi_replace   22.04.2010, 18:59:38
- - Pawel_W   po co te podwójne \\? i taka rada prze...   22.04.2010, 19:13:51


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: 21.08.2025 - 06:11