DUH
Thanks all. This is exactly what I was looking for. Couldn't remember the
exact term of the chars though. Thanks again.
Chris
At 05:19 PM 8/5/2003, David Nicholson wrote:
Hello,
This is a reply to an e-mail that you wrote on Tue, 5 Aug 2003 at
23:16, lines prefixed by '>' were originall
Is it possible to change the ?, :, & and / characters to their respective
hex(?) values automatically? That is without having to use str_replace for
each one? Anyone know how?
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
This is a reply to an e-mail that you wrote on Tue, 5 Aug 2003 at
23:16, lines prefixed by '>' were originally written by you.
> Is it possible to change the ?, :, & and / characters to their
> respective
> hex(?) values automatically? That is without having to use
> str_replace for
> eac
David Nicholson wrote:
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'),$o
4 matches
Mail list logo