Function : array_get

This function converts an array to stdObject

Syntax
  array_get($array, $key)
  
  $array: array from which key's value is fetched
  $key  : key with value to be fetched
   
                  
Sample
  $array = ['gender' => 'male'];

  $value = array_get($array, 'gender');

  vdump($value); //male
                  
The sample above is similar to the expression below:
Similar expression
  $array = ['gender' => 'male'];

  vdump($array['gender'] ?? false); //male