Re: [PHP] conditionaly including classes/functions

2002-04-05 Thread Erik Price
On Thursday, April 4, 2002, at 12:28 PM, Andrew Warner wrote: > Is it okay practice to condtionally include php files that contain only > classes or functions (as opposed to just straight code)? The result > is a class or function inserted right in the middle of an if{} block: It is better

[PHP] conditionaly including classes/functions

2002-04-05 Thread Andrew Warner
Is it okay practice to condtionally include php files that contain only classes or functions (as opposed to just straight code)? The result is a class or function inserted right in the middle of an if{} block: } elseif ($var=='a') { include('temp.php'); $obj = new foo; echo