I'm pretty sure what you're looking for is "protected" or "private", depending on your use case.
If you're defining an function in a class, and you only want it available to itself, you'll define it this way:
private function foo($arg1, $arg2) { /*function stuff goes here */ }
If you're defining a function in a class that you want to be available to classes which inherit from this class, but not available publicly, definite it this way:
protected function foo($arg1, $arg2)
I'm pretty sure that by default in PHP5, functions are public, meaning you don't have to use the following syntax, but it's optional:
public function foo($arg1, $arg2) { /*function stuff goes here */ }
You'll still have to instantiate the object before using a public function. So I'll just be thorough and let you know that in order to use a function in a class without instantiating an object, be sure to use the following syntax:
static function foo($arg1, $arg2) { /*function stuff goes here */ }
That will allow you to use the function by only referencing the class, as follows:
MyClass::foo($a1, $a2);
Otherwise, you'll need to do the following:
$myObject = new MyClass();
$myObject->foo($a1, $a2);