If a function is declared outside of a class, can a class function use that exterior function?

say I have

function foo($x) {
print $x+1; }

class Foo2 {

var $y;

function foo3() {
foo($this->y); }
}

then if I:

$tempclass = new Foo2;
$tempclass->y = 1;
$tempclass->foo3();

Will this return 2?

Thanks.

------------------
----------------------------
http://www.undergrounds.com
Come Escape