Arrays Learning Mode

What will be the output of the following script?

    $result = '';
    function glue ($val)
    {
    global $result;
    $result .= $val;
    }
    $array = array ('a', 'b', 'c', 'd');
    array_walk ($array, 'glue');
    echo $result;