Thanks for viewing my thread!
I am a fairly advanced PHP developer, however, lately I have been having sleepless night about a small thing that I might just be doing wrong...
class test
{
function one ()
{
print 'Hello World One!';
}
function two ()
{
print 'Hello World Two!';
}
}
// This one needs be initialized!
$test = new test();
$test->one();
// This one needs not be initialized!
test::two();
I obviously know that the one does not need to be initialized, so you can call him directly. But what is the difference, when will you use the one method and when the other!?
I hope I can find a clear and understanding answer to my question...
Regards