Posted by lkrubner on 10/11/05 01:20
Okay, the function doesn't work:
http://www.whatisliberalism.com/pdsFiles/page2533.xml
All the white space got replaced, but the entity that is kill the feed
is still there.
What is wrong with this function?
function command($string=false) {
$howMany = strlen($string);
$newString = "";
for ($i=0; $i < $howMany; $i++) {
$char = $string[$i];
$asciiNum = ord($char);
if ($asciiNum > 32 && $asciiNum < 128) {
$newString .= $char;
} else {
$newString .= "'";
}
}
return $newString;
}
Navigation:
[Reply to this message]
|