I need to call the following lines of code -the body of function func- from many locations in my application. So I use a function. Is it a bad idea?
(class a -not b- has a lot lines of code)
Also functions like g are more than 50!
class b extends a
{
public function f()
{
echo "bf";
// I want to call function g from here
}
}
$b1 = new b();
$b1->f();