[PHP] Re: php array question

2004-11-01 Thread Victor C.
Hi Ben, I tried your portion of code and find out what was wrong... Apparently I used & in adding order to the array and that was messing things up... Everything is working now. Thanks for all the help "Victor C." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I did a print_r(a

[PHP] Re: php array question

2004-11-01 Thread Ben Ramsey
Victor C. wrote: I did a print_r(array_values)before calling the codes that had errors in it.. the following content is contained in $this->orders; Aaaghh. Can you give that to us in pre-formatted text, rather than copying and pasting it from the browser. My eyes are going everywhere trying t

[PHP] Re: php array question

2004-11-01 Thread Victor C.
I did a print_r(array_values)before calling the codes that had errors in it.. the following content is contained in $this->orders; Array ( [0] => order Object ( [UserObject] => user Object ( [UserID] => E2401 [Pass] => [IsValid] => 1 [UserType] => AT [fonthtml] => [footerfile] => resources/foo

[PHP] Re: php array question

2004-11-01 Thread Ben Ramsey
Ben Ramsey wrote: Victor C. wrote: $OrderObject =$this->orders[$OrderID=>$value]; This line is confusing. $OrderID=>$value is either a typo or is just plain wrong. It looks like what it's meant to say is: $OrderObject = $this->orders[$OrderID]; But this will just set $OrderObject equal to $v

[PHP] Re: php array question

2004-11-01 Thread Victor C.
But why would the this line generate different OrderID on lines 1 and 3? "Ben Ramsey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Victor C. wrote: > > $OrderObject =$this->orders[$OrderID=>$value]; > > This line is confusing. $OrderID=>$value is either a typo or is just > plai

[PHP] Re: php array question

2004-11-01 Thread Ben Ramsey
Victor C. wrote: $OrderObject =$this->orders[$OrderID=>$value]; This line is confusing. $OrderID=>$value is either a typo or is just plain wrong. It looks like what it's meant to say is: $OrderObject = $this->orders[$OrderID]; But this will just set $OrderObject equal to $value, so you should