Dan skrev:
Oh yeah, the problem isn't that I'm using -> instead of =>. Well that was a problem but I fixed that and it's still not working.

- Dan

""Dan"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
I'm having a little problem assigning a value to an array which has a key. It's simple, I just don't know what I'm doing wrong.

               foreach($Checkout as $value)
              {
$products[] = $value['productName'] -> $value['actualValue'];
               }

HELP!


either:

$products[$value['productName']] = $value['actualValue'];

OR

$products[] = array( $value['productName'] => $value['actualValue'] );

--
/Thunis

I think you ought to know I'm feeling very depressed.
  --The Hitchikers Guide to the Galaxy

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to