Apply a function for each array
<p>I'm trying to apply a function for each array but it doesnt work, here's my code:</p>

<pre><code>$array['a'] = "aaa";
$array['b'] = "bbb";

function myFunction ($array) {
   ## some code
   };

foreach ($array as $value) {
   echo myFunction($array[$value]);
   };
</code></pre>

<p>Thx for your help.</p>
