RE: 答复: 答复: [PHP]COOKIE or coding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Chris [mailto:dmagick@xxxxxxxxx]
> Sent: Wednesday, November 05, 2008 8:51 PM
> To: Zhao chunliang[chunliang.zhao]
> Cc: php-general@xxxxxxxxxxxxx
> Subject: Re: 答复: 答复: 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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux