Online Shopping : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 20 people (35%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

how do I call class method: $func="SomeClass::someMethod"; $func()

Jan 6th, 2009 09:24
jack uter, healthy man, dman, Taksh Verdhan, taylor gerring, Peter Morch,


PHP supports object-oriented programming through the use of classes 
and ojects. You can find out everything you need to know in the php 
manual online at www.php.net/manual/en/ref.classobj.php
In general, the structure is as follows:
class mySpace
{
    myFunction()
    {
        return 1;
    }
}
$someSpace = new mySpace;
$theAnswer = $someSpace->myFunction();
http://reisenindien.info
http://decorations.leblogguide.com
http://ideescadeaux.leblogguide.com
http://voyage-inde.info
http://viajarchile.miblogguia.com
http://voyagesingapour.leblogguide.com
http://italiehotels.leblogguide.com
http://voyageauperou.leblogguide.com
http://viaggiindia.com
http://voyagedubai.info
http://viajes.miblogguia.com
http://viaggio-australia.com
http://www.healthdothealth.com
http://www.healthxhealth.com
http://www.mesotheliomainmesothelioma.com
http://www.healthfirewall.com
http://www.flathealth.com
http://www.healthbodyguard.com