PHP Classes

How to use * and %

Recommend this page to a friend!

      Intelligent Censor  >  All threads  >  How to use * and %  >  (Un) Subscribe thread alerts  
Subject:How to use * and %
Summary:An idea
Messages:4
Author:C Alex
Date:2008-09-03 13:55:26
Update:2008-09-04 02:04:14
 

  1. How to use * and %   Reply   Report abuse  
Picture of C Alex C Alex - 2008-09-03 13:55:26
You could replace "*" and "%" with let's say "{ASTERISK}" and "{PERCENT}" at the begining, before you start censoring, and at the end, when outputing, convert them back to the orignial characters, just an idea :)

  2. Re: How to use * and %   Reply   Report abuse  
Picture of C Alex C Alex - 2008-09-03 14:00:13 - In reply to message 1 from C Alex
And also, in this functions...

<?php
function attach_beginning($stem, $beginning, $replacement)
{
return $beginning.$stem;
}
?>

The $replacement argument is not used, just a heads up.

  3. Re: How to use * and %   Reply   Report abuse  
Picture of sk89q sk89q - 2008-09-04 02:03:18 - In reply to message 1 from C Alex
I'll look into a way to put literal characters (maybe that, if I'm feeling lazy =)..). I rolled this for my own chat months ago, so I didn't bother putting in anything I didn't need.

  4. Re: How to use * and %   Reply   Report abuse  
Picture of sk89q sk89q - 2008-09-04 02:04:14 - In reply to message 2 from C Alex
I'll look into that too. It was something I tossed in for future's sake when I was releasing this class.