Posted by Anonymous Mon 12th Mar 2007 13:02 - Syntax is PHP - 228 viewsRun this post in the PHP shell
Download | New Post | Modify | Show 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


class B
{};

class A
{
    private static $a = array(
        "bad",
        "ger"
        , new B()
    );

    static function foo()
    {
        echo A::$a[0];
    }
};

A::foo();
 

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

 

Comments: 0