Forum Moderators: coopster
Should I create a huge one size fits all external library of functions that is called whenever I need to perform one of them or split them down into cateogories. My musings are such:
If I call the large file it will slow the page down as it has to go through hundreds of lines of code. Is this a correct assumption.
When does an include become a class? Or am I barking up the wrong tree etirely?
Any help appreciated
As for classes, code becomes a class when it is declared as such, eg,
class MyClass
{
var myFirstProperty;
var mySecondProperty = "bar";function MyFirstMethod($arg)
{
return $arg * $arg;
}
}
Sort of a useless class as written, but you get the idea. There's plenty of info in the manual at www.php.net to get you started with objects and classes in PHP.