simple oop-php question
<pre><code>class Photos 
{
private $photos = array();

function add_photo($filename, $date, $lat, $long) 
{
  $this-&gt;photos[] = array('filename' =&gt; $filename, 'date' =&gt; $date, 
                          'lat' =&gt; $lat,  'long' =&gt; $long);
  return $this;
}

   function get_all() 
   {
      return json_encode($this-&gt;photos);
   }
   }
</code></pre>

<p>I'm new to object oriented php, so i would like to get some help here. The <code>get_all</code> function returns all my photos. I would like to add a function that returns X numbers of photo-arrays, instead of all of them. But I dont know how to do it. Any help is appreciated!</p>
