So when i use this:
print_r($events->getLocation($event['event_name']));
It returns:
Array
(
[0] => Array
(
[location] => Düsseldorf, Germany
)
)
But when i use this:
print_r($events->getLocation($event['event_name'][0]));
It returns this:
Array
(
)
$event
is an array from a foreach
and $events
is my class.