i have this issue echoing arrays in php.
In my localhost i can echo an array value like this:
echo explode(",", $emails)[1];
In server i receive this message.
Parse error: syntax error, unexpected '[', expecting ',' or ';' in /home
But on the server doesn't work, does anyone know why? i think because the PHP version, so, if because this do you know how to enable the echo this way?
Thanks.