amnesia623 wrote:I'm a little confused on when to use a static method as opposed to a instatiated method.
I think you mean a static (or class) method versus a non-static (or instance) method.
amnesia623 wrote:I unerstnd that static means the the method is available to the entire script ($me = idont::know) but when is this good to use as opposed to instantiated methods?
If the method uses non-static data members, then it must be a non-static method. If it uses static data members but not non-static data members, then it probably should be a static method. (If it uses no data members at all, or only uses data members via other methods, then it probably should not be a method of the class.)
Of course, this means that you now have to decide whether a data member should be static or non-static, and that means asking the question of whether it is specific to each instance of the class, or if it should be shared by all the instances of the class.
Also, until namespaces become available (very soon), you could also use a class with only static methods as a poor man's version of a namespace.