how to apply a class method to each value of an array?
<p>I want to apply a class method <code>$this-&gt;escape($str)</code> to all the values of an <code>$data</code> array.</p>

<p>I know I can use PHP's <code>array_walk()</code> function to apply a <code>function</code> to each value of an array, but I want to apply a <code>class method</code>. Is this possible? If yes, then how?</p>

<p>Please give me the shortest possible code for this task, and I don't want to use a <code>foreach</code> loop.</p>
