title: get only 5 elements from array
body: <p>my array is setup as follow:</p>
  
  <pre><code>array
    'testuri/abc' =&gt; 
      array
        'label' =&gt; string 'abc' (length=3)
        'weight' =&gt; float 5
    'testuri/abd' =&gt; 
      array
        'label' =&gt; string 'abd' (length=3)
        'weight' =&gt; float 2
    'testuri/dess' =&gt; 
      array
        'label' =&gt; string 'dess' (length=4)
        'weight' =&gt; float 2
    'testuri/gdm' =&gt; 
      array
        'label' =&gt; string 'gdm' (length=3)
        'weight' =&gt; float 2
    'testuri/abe' =&gt; 
      array
        'label' =&gt; string 'abe' (length=3)
        'weight' =&gt; float 2
    'testuri/esy' =&gt; 
      array
        'label' =&gt; string 'esy' (length=3)
        'weight' =&gt; float 2
    'testuri/rdx' =&gt; 
      array
        'label' =&gt; string 'rdx' (length=3)
        'weight' =&gt; float 3
    'testuri/tfc' =&gt; 
      array
        'label' =&gt; string 'tfc' (length=3)
        'weight' =&gt; float 3
  </code></pre>
  
  <p>I want to get/filter the 5 elements with bigges 'weight'. Is there a php function to make this?</p>
  
  <p>PS. My idea was to use foreach</p>