parse_smileys([$str = ''[, $image_url = ''[, $smileys = NULL]]])
Parameters: |
|
---|---|
Returns: |
Parsed smileys |
Return type: |
string |
Takes a string of text as input and replaces any contained plain text smileys into the image equivalent. The first parameter must contain your string, the second must contain the URL to your smiley folder
Example:
$str = 'Here are some smileys: :-) ;-)'; $str = parse_smileys($str, 'http://example.com/images/smileys/'); echo $str;
Please login to continue.