Hello guys
function replace_text_smiley(){
global $comment;
// To add a relation between a text smiley a an image smiley do this:
// $faces[text smiley here] = img tag to image smile here;
$faces[:)] = IMG SRC=\emoticons/smile.gif\;
$faces[:P] = IMG SRC=\emoticons/tongue.gif\;
$faces[:D]
Hello guys
function replace_text_smiley(){
global $comment;
// To add a relation between a text smiley a an image smiley do this:
// $faces[text smiley here] = img tag to image smile here;
$faces[:)] = IMG SRC=\emoticons/smile.gif\;
$faces[:P] = IMG SRC=\emoticons/tongue.gif\;
$faces[:D]
What if pass some parameters to function - i mean not use global $comment
but
do like function replace_text_smiley($comment)
- Original Message -
From: Daniel Harik [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, October 28, 2001 12:20 AM
Subject: [PHP] Replace text
Hello guys
Hello guys
function replace_text_smiley(){
global $comment;
// To add a relation between a text smiley a an image smiley do this:
// $faces[text smiley here] = img tag to image smile here;
$faces[:)] = IMG SRC=\emoticons/smile.gif\;
$faces[:P] = IMG SRC=\emoticons/tongue.gif\;
4 matches
Mail list logo