PHP-Fusion Development


Parse the smileys in string and display smiley codes as smiley images.

Versions: 9

parsesmileys( string $message ) : string


$message (string) (Required) A string that should have parsed smileys.

Return Values

(string) String with parsed smiley codes as smiley images ready for display.


$message = "Here is a text :) with some smiley's in it :D.";
echo parsesmileys($message);
// Here is a text <img src='' alt='Smile'> with some smiley's in it <img src='' alt='Grin'>.