Questions round class and include:

Is it ok to add include example include('dbconfig') within a class?

At first I thought having includes in a class wasn't the right format but I ran into a tutorial which included include('dbconnect') in a class.


include('dbconnection'); < -- Can you add includes here ?????

class testclass
{ method1() {}
method2() {}