You're a genius!! Thank you. Uppercase 'R', sheesh. PHP is sooo picky. I worked 
for two days trying to figure that one out. Anyway, for future reference, you 
can pass the entire array as a variable like that?? and do you know if the '+=' 
statement will create an array entry if one doesn't exist?

Thanks,

Jeff Burcher - IT Dept
Allred Metal Stamping
PO Box 2566
High Point, NC 27261
(336)886-5221 x229
j...@allredmetal.com


> -----Original Message-----
> From: ma...@behnke.biz [mailto:ma...@behnke.biz]
> Sent: Thursday, June 14, 2012 8:04 AM
> To: php-general@lists.php.net; j...@allredmetal.com
> Subject: Re: [PHP] global array
> 
> 
> 
> 
> Jeff Burcher <j...@allredmetal.com> hat am 14. Juni 2012 um 13:55
> geschrieben:
> 
> >
> > function Part_BOM($PartID, $need, $phase) {
> >
> >
> >
> >                 global $Invreq;
> 
> 
> uppercase R !!!
> And much better is adding it as another parameter and inject it:
> 
> function Part_BOM($PartID, $need, $phase, $InvReq) { ....
> }
> 
> // call it
> Part_BOM(..., ..., ..., $InvReq);
> 
> And please read about foreach() and what you can do with it.
> 
> --
> 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

Reply via email to