I am running Aptana Studio 3, build: 3.6.1.201410201044. I don't understand why it is reporting the following as a syntax error given that it was working fine in vim and could run the code in XAMPP with no errors:
$key = array_keys($myArray)[0];
Why is Apatana reporting a syntax error here and how do I fix it?