
May 12th, 2000, 01:50 PM
|
|
Junior Member
|
|
Join Date: May 2000
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
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
|