Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> czym zastąpić funkcje ereg_replace ?
pys1986
post
Post #1





Grupa: Zarejestrowani
Postów: 233
Pomógł: 0
Dołączył: 18.01.2005

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


Witam, jaką funkcją mogę zastąpić usuniętą (PHP 5.3) funkcję ereg_replace ?

Chodzi mi dokładnie o to że mam bloki np:
  1. <!--blok-->cos tam<!--endblok-->

i chce żeby w kodzie zostało samo "cos tam" czyli żeby mi usunęło same znaczniki (w zależności od uprawnień danego użytkownika)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
batman
post
Post #2





Grupa: Moderatorzy
Postów: 2 921
Pomógł: 269
Dołączył: 11.08.2005
Skąd: 127.0.0.1




Odpowiedź na swoje pytanie znajdziesz w manualu - ereg_replace


--------------------
I would love to change the world, but they won't give me the source code.
My software never has bugs. It just develops random features.
Go to the top of the page
+Quote Post
posiadacz
post
Post #3





Grupa: Zarejestrowani
Postów: 46
Pomógł: 2
Dołączył: 2.04.2009

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


Tip

preg_replace(), which uses a Perl-compatible regular expression syntax, is often a faster alternative to ereg_replace().

źródło php.net winksmiley.jpg
Go to the top of the page
+Quote Post

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 - 16:50