Loading:


Emoty w komentarzach!

emotki zmiana tekstu na emoty



Napisz Artyku³

Listing

<?php
function smilies($string)
 {
 
  $string = str_replace(":)", "<img src="gfx/emoty/smile.gif" alt=":)"  />", $string);
  $string = str_replace(":(", "<img src="gfx/emoty/sad.gif" alt=":("  />", $string);
  $string = str_replace(";)", "<img src="gfx/emoty/wink.gif" alt=";)" />", $string);
  $string = str_replace(":D", "<img src="gfx/emoty/grin.gif" alt=":D" />", $string);
  $string = str_replace(":p", "<img src="gfx/emoty/pfft.gif" alt=":p" />", $string);
  $string = str_replace(":|", "<img src="gfx/emoty/frown.gif" alt=":|" />", $string);
  $string = str_replace(":o", "<img src="gfx/emoty/shock.gif" alt=":o" />", $string);
  $string = str_replace(":c", "<img src="gfx/emoty/cool.gif" alt=":c"  />", $string);
  $string = str_replace(":@", "<img src="gfx/emoty/angry.gif" alt=":@" />", $string);
 
  return $string;
 }
?>




Dodano przez: szymon2515 Ranga: Poziom 8 Punktów: 298
Komentarze użytkowników
Ciekawe i chyba wszystko ok!
autor: zaszka | 12452 | 2011-05-30 17:05:12


    • Tre¶æ komentarza
      Kod do komentarza (opcjonalnie)
      PHP JavaScript MySQL Smarty SQL HTML CSS ActionScript
      Autor
      Token
      token

       

       








funkcje.net
Wszelkie prawa zastrzeżone©. | Funkcje.net 2008-2024 v.1.5 | design: diviXdesign & rainbowcolors