Missing required fields
Posted by Anonymous Mon 12th Mar 2007 13:02 - Syntax is PHP - 227 viewsRun this post in the PHP shell
Download | New Post | Modify | Hide line numbers
PHP parser reported the following syntax error in this post:
Parse error: syntax error, unexpected T_NEW, expecting ')' in post on line 11
  1.  
  2. class B
  3. {};
  4.  
  5. class A
  6. {
  7.     private static $a = array(
  8.         "bad",
  9.         "ger"
  10.         , new B()
  11.     );
  12.  
  13.     static function foo()
  14.     {
  15.         echo A::$a[0];
  16.     }
  17. };
  18.  
  19. A::foo();
  20.  

PermaLink to this entry https://pastebin.co.uk/11760
Posted by Anonymous Mon 12th Mar 2007 13:02 - Syntax is PHP - 227 viewsRun this post in the PHP shell
Download | New Post | Modify | Hide line numbers

 

Comments: 0