View Single Post
Old 10-31-2009, 02:59 PM  
ro8in
Confirmed User
 
ro8in's Avatar
 
Industry Role:
Join Date: Sep 2006
Posts: 1,542
PHP programmers in here please!

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...
__________________
------
Offcourse its a dude posting here. Probably a fut ugly one too. Fuck still people falling for this 100 year old trick
ro8in is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote