Function Subscripting

Function subscripting is the ability to apply operators like ->, ?-> or [<index>] directly on the results of a method call.

<?php

// displays the third element of the response of 'callMethod', on object 'getObject';
echo getObject()->callMethod()[3];
?>

Documentation

Related : Dereferencing