以下函数在PHP中有什么作用?

private static function quote($str)
{
    return '"' . $str . '"';
}

and what does this mean too?

$args = array_map(array($this, 'quote'), $args);

I'm new to PHP and am trying to figure out my way through someone else's source code. Thanks!

It adds quotes to all values in an array.