eval("\$string=\"".eregi_replace("([^A-Z])",
"\\x\".dechex(ord(\"\\1\")).\"", $string)."\";");

;-)

/* Chris Lambert, CTO - [EMAIL PROTECTED]
WhiteCrown Networks - More Than White Hats
Web Application Security - www.whitecrown.net
*/

----- Original Message -----
From: ReDucTor <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 08, 2001 10:18 AM
Subject: [PHP] simple question


is there a function to turn all chars that are not alphanumric to show \xhh
but hh being the hex version of it :)?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to