Return to Snippet

Revision: 11597
at February 10, 2009 15:03 by kirkstrobeck


Initial Code
function strtoentity($input)
{ 
    foreach (str_split($input) as $obj) 
    { 
        $output .= '&#' . ord($obj) . ';'; 
    }
    return $output;
}

Initial URL
http://kirkstrobeck.com

Initial Description
Very helpful for a weak security on emails or other information..

Initial Title
String to Entity

Initial Tags


Initial Language
PHP