Hi,
I have used PHP for many years but only started using OO and hope that someone can help with the following.
I have taken on someone else's code for a site and there is a class that contains 2 functions with the same name. This has been working fine with PHP 4.1.2 but the web hosting just upgraded to PHP 4.3.6 and now we are getting a 'Fatal Error: Can't redclare blah....'.
class className
{
function test($a, $b) {
....
//returns true or false depending on certain conditions
}
function test($a = false) {
$this->_access = $a;
}
}
Thanks in advance