How to build a menu hook module
If you want to use a variable for the page title, it is better to use a title callback.

function menufun_menu() {
    $items['menufun'] = array(
        'title callback' =&gt; 'menufun_title',
        'page callback' =&gt; 'menufun_greeting',
        'file' =&gt; 'menufun_greeting.inc',
        'page arguments' =&gt; array('Jane', 'Doe'),
        'access callback' =&gt; TRUE,
        'type' =&gt; MENU_NORMAL_ITEM,
    );
    return $items;
} 
function menufun_title(){
    $tryk = 'test'; // dynamic title set here.
    return $tryk;
}