function entityenc($str)
{
$text_array = explode("\r\n", chunk_split($str, 1));
for ($n = 0; $n < count($text_array) - 1; $n++)
{
$newstring .= "" . ord($text_array[$n]) . ";";
}
return $newstring;
}
?>
Article by article - Critical Walkthrough Commentary on UCP600