Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- php oop


nil111 - 11:42 am on Jun 3, 2010 (gmt 0)


class One {
function one_func(){
return 'hello';
}

}

class Two {
function two_func(){
return 'world';
}
}

//to access the functions of the above classes assuming they r on the same page
$one = new One();
$two = new Two();
print $one->one_func().' '.$two->two_func();


Thread source:: http://www.webmasterworld.com/php/4145176.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com