Re: global array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Jeff Burcher <jeff@xxxxxxxxxxxxxxx> 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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux