Re: Name of variable to string [SOLVED]

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

 



At 1:39 PM -0800 2/8/08, Jim Lucas wrote:
So, how is this any better then just doing this

$_SESSION = array_merge(array_merge($_SESSION, $_POST), $_GET);

If I replace the two calls to sessionize_*() with the above line, I get the same results. Not sure what I am missing.

First, I didn't say it was better.

Second, you're not missing anything.

Third, if I wanted to merge the arrays, I could use REQUEST and forget the merge.

I was just trying to get the "check the current value of post or get variable and put it into a session" with a single simple statement of:

$whatever = serialize($whatever);

Now, I've have to continue with my original:

$whatever = serialize('whatever');

When dealing with just a few variables, it's not a big deal. But, with the numbers I've been dealing with lately, I was looking to create something simple to cut and paste into.

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
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