i am defining a class called Tree
class Tree {
var $blah;
function Tree() {
}
function Save() {
}
function Delete() {
}
function Foo(strArg) {
}
}
that function Foo causes an error!
Parse error: parse error, expecting `')'' in /home/myproject/public/classes/tree.php on line 15
i'm not sure why because i have plenty of other projects that allow member functions of a class to accept arguments...what could be the problem? might i have some error somewhere else? or is there some init perhaps in my other projects that i've forgotten?
this is totally bafffling me.
on another note, can anyone recommend a good PHP development environment for windows?