Here is the code what i do, To call a function within a class,
Which works fine, But i want to know that is there any other way to Call function within a class?
class demo {
public function demo_one(){
$this->demo_big();
$this->demo_small();
}
private function demo_big(){
// Code for demo_big
}
private function demo_small(){
// Code for demo_small
}
public function demo_test(){
// Code for demo_test
}
}
$demoObject = new demo();
$demoObject->demo_one();
$demoObject->demo_test();