Retrieve value from an array I have an array, that I want to retrieve the values from. 
When I test the array with a print_r, it says that it has the right values. But when I want to show them  in their right places, it says that it has no values. 

function employees_items($nodeid, $language)
{
  $query  = db_query(//SOME QUERY);
  $rows   = array();

   foreach ($query as $row) {
    $rows[] = array(
        $row-&gt;nid,
        $row-&gt;title,
        $row-&gt;field_service_nummer_value,
        $row-&gt;field_support_email_value,
        $row-&gt;uri,
    );
}

    return $rows;   


}

Here I want to retrieve the values...I want the value in $row->uri. The errormessage: Trying to get property of non-object i employees_block_view() 

  function employees_block_view($delta = '')
 {
 if (array_key_exists($brandpage_id_page, $medarbejder_brandpages))
    {
     switch ($delta)
    {           

        case 'employees':                                   

        $employees = employees_items($brandpage_id_page, $lang_name);

        foreach ($employees as $row)
            {

              $block['content'] .= '&lt;div class="img"&gt;';
              $block['content'] .= '&lt;img style="width: auto; height: 100px;"    src="'.file_create_url($row-&gt;uri). '" alt="Vores support medarbejder" /&gt;';
   }
  return $block;
 }
Try $row['uri'] instead.  As 'uri'  is merely the key and not another object.

In this line of code:

$block['content'] .= '&lt;img style="width: auto; height: 100px;" src="'.file_create_url($row-&gt;uri). '" alt="Vores support medarbejder" /&gt;';

you refer to another object, the uri ($row-&gt;uri). Within the $row array, that you printed with print_r, there is the key 'uri'. To get the value of that key you should use $row['uri'].