How access a key of a array which is returned by a function [PHP]
I want to be able to access the array directly from the return value of the function.

    e.g. 
    $arr = find_student();
    echo $arr['name'];

    // I want to be able to do
    echo find_student()['name']

How can I accomplish the same ? Without another line of code ?
How access a key of a array which is returned by a function [PHP]
===

I want to be able to access the array directly from the return value of the function.

    e.g. 
    $arr = find_student();
    echo $arr['name'];

    // I want to be able to do
    echo find_student()['name']

How can I accomplish the same ? Without another line of code ?