If you want *only* the ?:&/ characters changed then it can be done with a regular rexpression, the e modifier, and the ord(), hex() and strtoupper() functions, post back if you would like an example.
$new_str = str_replace(array('?',':','&','/'),array('3F','3A','26','2F'),$old_string);
should be less costly than a regular expression with an 'e' modifier.
-- ---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
PHP|Architect: A magazine for PHP Professionals – www.phparch.com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php