title: How to get returning associative array element from function?
body: <pre><code>public function getPhotos($id_album){
  $hisPhoto = '123';
  $myPhoto = '456';
  $herPhoto = '789';
  $id_user = 1;
  $photoTable = array
  (
      'hisPhoto' =&gt; $hisPhoto,
      'myPhoto' =&gt; $myPhoto,
      'herPhoto' =&gt; $herPhoto,
  );
  
  return array
  (
      'id_user' =&gt; $id_user,
      'photos' =&gt; $photoTable
  )
  }
  
  $photos = getPhotos($id_album);
  </code></pre>
  
  <p>I have no idea how to use associative array in associative array.
  What is the simplest way using this function to get to the my photo (value '456')?</p>