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.          |
`------------------------------------------------------------'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to