Jason Wong wrote:
> 
> If $aProds can contain more than 1 item then what you're doing now is correct. 

Thanks. The problem was that I was doing this:

$return[] = get_array_of_prods();

the [] was creating the extra array level ...

The problem I now face is that foreach keeps crapping out if I pass it 
an "unitialized" (i.e. has no value) array. Foreach is happy with empty 
arrays but not arrays that have not been assigned anything yet ...

Jc


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

Reply via email to