functions are defined at a global level ; so, you don't need to do anything to use them from a method of your class.
For more informations, see the function page in the manual, which states (quoting) :
All functions and classes in PHP have
the global scope - they can be called
outside a function even if they were
defined inside and vice versa.
For your $foo
variable, on the other hand, you have to use the global
keyword inside each method/function in which you want to access it.
For more informations, don't hesitate to read the page about Variable scope, which should bring you interesting informations ;-)
Edit after the comment :
Each method/function regardless of it
being defined within a class or not?
If a "function" is defined inside a class, it's not called a "function" anymore, even if it is still the function
that is used : it is called a "method"
Methods can be used statically :
MyClass::myMethod();
Or Dynamically :
$obj = new MyClass();
$obj->myMethod();
Depending on whether they were defined as static or not.
As a sidenote : if you are new to OOP in PHP, you should definitly invest some time to read the Classes and Objects (PHP 5) section of the manual : it will explain much.