Programmer76
Programmer
Hi,
I am trying to create a static class but I cannot seem to do so...here is the code:
I get an erro on the declaretion of the function test...
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}''
I am using PHP Version 4.3.2...
Anyone know what is wrong?
It seems like the static keyword is causing the problem but the way I understand the documentation it is supported...
Any ideas at all??
CES
I am trying to create a static class but I cannot seem to do so...here is the code:
Code:
class Validate {
public static function test(){
echo '<br>TESTING<br>';
}
}
I get an erro on the declaretion of the function test...
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}''
I am using PHP Version 4.3.2...
Anyone know what is wrong?
It seems like the static keyword is causing the problem but the way I understand the documentation it is supported...
Any ideas at all??
CES