Re: php array question
| From: | Victor C. | Date: | Mon, 01 Nov 2004 21:46:41 +0000 |
| Subject: | Re: php array question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200870@lists.php.net to get a copy of this message | ||
But why would the this line generate different OrderID on lines 1 and 3?
"Ben Ramsey" <lists@benramsey.com> wrote in message
news:4186AE2A.5000704@benramsey.com...
> 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 just
use:
>
> $OrderObject = $value;
>
> Try that and see if it works.
>
> --
> Ben Ramsey
> Zend Certified Engineer
> http://benramsey.com
>
> ---------------------------------------------------
> Atlanta PHP - http://www.atlphp.org/
> The Southeast's premier PHP community.
> ---------------------------------------------------