title: Saving elements in multidimensional array
body: <p>I'm building a program that parses a website and store links and images, i'm storing them in separate arrays, one array for the links, one for images, etc.. I want it to save on one multidimensional array.. how can I do it ? I have three functions that return an ID array, containing ID's from the topic i'm storing, another function that returns an array of titles from the topics i'm saving and another function that return an array with all image links.. so my "main" function is:</p>
  
  <pre><code>$array_id = getIds();
  $array_titles = getTitles($array_id);
  $array_images = getImages($array_id);
  </code></pre>
  
  <p>I want to store it in somewhay that when I call like:</p>
  
  <blockquote>
    <p>$array[$id][$images]</p>
  </blockquote>
  
  <p>I get all images on this topic ID, or if I call</p>
  
  <blockquote>
    <p>$array[$id][$title]</p>
  </blockquote>
  
  <p>I get the title on this topic ID, is this possible ? or is this the best way to do it ? I'm new to php, i would make a struct if I were using C, so I don't know if there is anything equivalent to it on php, thank you very much..</p>