if I had a class lets say
class myclass {
function myfunction() {
}
}
Why in the world would I do
$myclass = new myclass
and use the function as
$myclass->myfunction
while I can forget all that and just do
myclass::myfunction()
what can be a possible reason not to use the double colon way??
i can't think of any...
class myclass {
function myfunction() {
}
}
Why in the world would I do
$myclass = new myclass
and use the function as
$myclass->myfunction
while I can forget all that and just do
myclass::myfunction()
what can be a possible reason not to use the double colon way??
i can't think of any...


Comment