Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Kasowanie wybranych znakow w ciagu
-nocas-
post
Post #1





Goście







Witam, mam taki problem, mam ciag, ktory zawiera jakis tam tekst, jak zrobic by skrypt usunal z niego wszystkie z wybranych przeze mnie znakow. Sorki, jesli temat sie powtarza.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
dag
post
Post #2





Grupa: Zarejestrowani
Postów: 180
Pomógł: 0
Dołączył: 24.12.2003

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


Zajrzałeś chociaż do str_replace" title="Zobacz w manualu PHP" target="_manual


  1. <?php
  2. // Provides: You should eat pizza, beer, and ice cream every day
  3. $phrase = &#092;"You should eat fruits, vegetables, and fiber every day.\";
  4. $healthy = array(&#092;"fruits\", \"vegetables\", \"fiber\");
  5. $yummy = array(&#092;"pizza\", \"beer\", \"ice cream\");
  6.  
  7. $newphrase = str_replace($healthy, $yummy, $phrase);
  8.  
  9. ?>


Ten post edytował dag 6.07.2005, 20:43:33
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 11.03.2026 - 19:10