Re: [PHP] Replace text

2001-10-27 Thread DL Neil
> 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[":)"] = ""; > $faces[":P"] = ""; > $faces[":D"] = ""; > $faces[":("] = ""; > $fa

Re: [PHP] Replace text

2001-10-27 Thread Valentin V. Petruchek
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]

[PHP] Replace text

2001-10-27 Thread Daniel Harik
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[":)"] = ""; $faces[":P"] = ""; $faces[":D"] = ""; $faces[":("] = ""; $faces[";)"] = "";

[PHP] Replace text

2001-10-27 Thread Daniel Harik
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[":)"] = ""; $faces[":P"] = ""; $faces[":D"] = ""; $faces[":("] = ""; $faces[";)"] = "";