<?php class bla { function foo() { // calling method bar() in class bla $this->bar(); } function bar() { echo 'barrrrr'; } }