Re: global array

From: Date: Thu, 14 Jun 2012 12:04:04 +0000
Subject: Re: global array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-318232@lists.php.net to get a copy of this message
Jeff Burcher <jeff@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.

« previous php.general (#318232) next »