On 24 January 2015 00:15:01 GMT, Stanislav Malyshev <smalys...@gmail.com> wrote:
>Hi!
>
>> Foo::bar(); // OK
>> ['Foo', 'bar'](); // OK
>> 'Foo::bar'(); // FATAL ERROR
>
>I'm not sure why one would ever need/want the latter. IMO, it just
>looks
>weird.

Well, they both look weird as literals like that, but the array looks the 
wierder of the two to me. Representing a static call in some external 
configuration is an example where a single string in normal PHP syntax would 
make more sense than needing to create a 2-element array.


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to