Re: Converting to ASCII HEX

From: Date: Fri, 28 Nov 2003 02:02:34 +0000
Subject: Re: Converting to ASCII HEX
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-171240@lists.php.net to get a copy of this message
On Thu, 2003-11-27 at 20:51, Ashley M. Kirchner wrote: > > 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. urlencode() Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'

« previous php.general (#171240) next »