I'm trying to return $example from a function my_function(). I have it set up like this:
function my_function() {
$example=array("key1" => "", "key2" => "");
return $example
}
my_function();
print_r ($example);
This doesn't work as it keeps complaining about an Undefined variable: example.