Hm... I should clarify this some more. This is the result of $Array2: Array ( [0] => Array ( [0] => 15083 [1] => bash [2] => S [3] => 4380 [4] => 10:31 [5] => 000 [6] => sator [7] => 00:00:00 [8] => -bash ) [1] => Array ( [0] => 15126 [1] => bash [2] => S [3] => 4380 [4] => 10:31 [5] => 000 [6] => sator [7] => 00:00:00 [8] => -bash ) [2] => Array ( [0] => etc... ) )
What I need is to be able to assign a variable to $Array2[0] - [0] so for the first one it would be: $var0 = 15083 $var1 = bash $var2 = S $var3 = 4380 etc... How do I get to this point? Susan -----Original Message----- From: Susan Ator Sent: Friday, November 14, 2003 6:35 PM To: 'CPT John W. Holmes '; ''Lowell Allen' '; 'PHP ' Subject: RE: [PHP] Having fits with input to array Actually, what I need to do is: $var1 = $Array2[1] $var2 = $Array2[2] etc... but I just seem to get Array as the output of $var1, $var2, etc... susan -----Original Message----- From: CPT John W. Holmes To: Susan Ator; 'Lowell Allen'; PHP Sent: 11/14/03 4:01 PM Subject: Re: [PHP] Having fits with input to array From: "Susan Ator" <[EMAIL PROTECTED]> > Perfect! That did exactly what I needed. Good... > Now, *ahem*, I thought I knew how to assign variables to the elements in > Array2 but *cough* I'm somewhat befuddled. I've not been able to find > anything in the online php manual. Could you point me in the right direction > for that? Not sure I'm following you, but $Array2[] = $somvariable; will add the value of $somevariable to the next element of $Array2. Can you explain a little more what you want if that's not it. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php