Displaying an array returned from a hook I'm writing a plugin which has a hook like: 

craft()-&gt;templates-&gt;hook('myHook', function(&amp;$context)
{
    return array('hello', 'there');
});


While I can call it in a template with:

{% hook myHook %}


I get an "Array to string conversion", understandably. But I can't work out how to treat the returned data like an array. How can I use hook 'myHook' in a for loop, or set it to a variable? It must be simple, but I've exhausted my random attempts.
Template hooks are useful if you need to change the current twig context array somewhere inside of a template. If you make any changes to $context inside of your hook's function, those changes will be available after your hook tag. 

If you just need to return some text or an array, a variable will do the trick just fine!