1
Testing local (xampp), with the return of the function mapping an array. Example:
<?php $res = $obj->Function()[0]['name']; ?>
And on the production server (typical hosts) this interpolated form presents a type error "Parse Error";
PHP Parse error: syntax error, Unexpected '[' in path/Archive.php on line 10
How to enable the availability to work with this syntax?
I didn’t know the term Array "Dereferencing". Using it (including here in the OS) you can find enough content about it.
– thelimarenan