/ Published in: PHP
URL: http://www.flashstar.nl/article-37.html
If you are a PHP developer, you are probably aware that you can pass an array of strings as the search strings and an array as the replacements to the str_replace function. In this example you can see how to automatically replace smiley shortcuts by an image.
Expand |
Embed | Plain Text
<?php function emoticons($text) { ); foreach ($emoticons as $key => $emoticon) { } return $text; } ?>
You need to login to post a comment.
