> -----Original Message-----
> From: Chris [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 05, 2008 8:51 PM
> To: Zhao chunliang[chunliang.zhao]
> Cc: [email protected]
> Subject: Re: 答复: 答复: [PHP]COOKIE or coding
>
> Zhao chunliang[chunliang.zhao] wrote:
> >
> > I'll use the string to decrypt, so that I want to they are the same.
> >
> > When I use 'urlencode', some other string will be changed. Like '/'
>
> see also http://php.net/rawurlencode
...and if you're only worried about '+' to ' ', just replace!
<?php
$foo = 'asldkf1231Qasasdf 123/Q==';
$foo = str_replace(' ', '+', $foo);
echo $foo;
?>
That code should output:
'asldkf1231Qasasdf+123/Q==
HTH,
Todd Boyd
Web Programmer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php