Converting to ASCII HEX
From: Ashley M. Kirchner (ashley_at_pcraft.com)
Date: 11/28/03
- Next message: John Nichel: "Re: [PHP] Converting to ASCII HEX"
- Previous message: Leif K-Brooks: "How compatible is using PATH_INFO?"
- Next in thread: John Nichel: "Re: [PHP] Converting to ASCII HEX"
- Reply: John Nichel: "Re: [PHP] Converting to ASCII HEX"
- Reply: Robert Cummings: "Re: [PHP] Converting to ASCII HEX"
- Reply: Ashley M. Kirchner: "Re: [PHP] Converting to ASCII HEX"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 27 Nov 2003 18:51:20 -0700 To: php-general@lists.php.net
How can I convert a string like this: "test & test" into
"test%20%26%20test" so I can then pass it to a script? Essentially
convert the spaces and & symbol to their ASCII HEX equivalent.
-- H| I haven't lost my mind; it's backed up on tape somewhere. +-------------------------------------------------------------------- Ashley M. Kirchner <mailto:ashley@pcraft.com> . 303.442.6410 x130 IT Director / SysAdmin / WebSmith . 800.441.3873 x130 Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6 http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.
- Next message: John Nichel: "Re: [PHP] Converting to ASCII HEX"
- Previous message: Leif K-Brooks: "How compatible is using PATH_INFO?"
- Next in thread: John Nichel: "Re: [PHP] Converting to ASCII HEX"
- Reply: John Nichel: "Re: [PHP] Converting to ASCII HEX"
- Reply: Robert Cummings: "Re: [PHP] Converting to ASCII HEX"
- Reply: Ashley M. Kirchner: "Re: [PHP] Converting to ASCII HEX"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]