1

Do you have the solutions that public static class fields in PHP4

var static $field = null;
Parse error: syntax error, unexpected T_STATIC, expecting T_VARIABLE 
freddiefujiwara
  • 57,041
  • 28
  • 76
  • 106

1 Answers1

1

PHP 4 didn't support static properties natively. The best you could do was implement static variables inside of your methods. Maybe the following link is useful for you:

http://adam.bregenzer.net/php/static_class_properties

AndyM84
  • 139
  • 4