[PHP-DB] Easy array question...

2003-03-12 Thread NIPP, SCOTT V (SBCSI)
I create an array on one page and then process it on the next page as I have registered the array as a session variable. I need to basically process one of these arrays twice, so I want to make a copy of the array. The question is how do I do this? I have tried the following: $array2 =

RE: [PHP-DB] Easy array question...

2003-03-12 Thread Hutchins, Richard
Are you using: $array2 = $_SESSION[array1]; Not sure that will do the trick, but it was my first inclination. Rich -Original Message- From: NIPP, SCOTT V (SBCSI) [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 11:37 AM To: '[EMAIL PROTECTED]' Subject: [PHP-DB] Easy array

RE: [PHP-DB] Easy array question...

2003-03-12 Thread NIPP, SCOTT V (SBCSI)
] Sent: Wednesday, March 12, 2003 10:40 AM To: '[EMAIL PROTECTED]' Subject: RE: [PHP-DB] Easy array question... Are you using: $array2 = $_SESSION[array1]; Not sure that will do the trick, but it was my first inclination. Rich -Original Message- From: NIPP, SCOTT V (SBCSI) [mailto

RE: [PHP-DB] Easy array question...

2003-03-12 Thread Jonathan Villa
PROTECTED]' Subject: RE: [PHP-DB] Easy array question... I don't think that is the case because I am able to access the original array in this same page without having to use the session variable reference. Won't hurt to give it a try though. Thanks for the feedback. -Original

RE: [PHP-DB] Easy array question...

2003-03-12 Thread Jonathan Villa
(SBCSI)'; 'Hutchins, Richard'; [EMAIL PROTECTED] Subject: RE: [PHP-DB] Easy array question... $array_copy = array(); array_push($array_copy, $_SESSION['original_array']); echo $array_copy[0];//or whatever to test --- Jonathan -Original Message- From: NIPP, SCOTT V (SBCSI) [mailto

RE: [PHP-DB] Easy array question...

2003-03-12 Thread NIPP, SCOTT V (SBCSI)
. -Original Message- From: Jonathan Villa [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 10:58 AM To: [EMAIL PROTECTED]; NIPP, SCOTT V (SBCSI); 'Hutchins, Richard'; [EMAIL PROTECTED] Subject: RE: [PHP-DB] Easy array question... Sorry, I just reread your post $array_copy = array

RE: [PHP-DB] Easy array question...

2003-03-12 Thread Jonathan Villa
Thanks again. -Original Message- From: Jonathan Villa [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 10:58 AM To: [EMAIL PROTECTED]; NIPP, SCOTT V (SBCSI); 'Hutchins, Richard'; [EMAIL PROTECTED] Subject: RE: [PHP-DB] Easy array question... Sorry, I just reread your post

RE: [PHP-DB] Easy array question...

2003-03-12 Thread NIPP, SCOTT V (SBCSI)
, SCOTT V (SBCSI) Subject: RE: [PHP-DB] Easy array question... It's actually putting the whole of the array $other as the first element of the array $other2. You're going to have to step through the array to copy it. foreach($other as $element) { $other2[] = $element; } //end foreach