public function getLocationsArray() { $Result = array(); foreach ($this->Locations as $Key => $Value) { $Result[$Key] = val('Name', $Value, $Key); } return $Result; }