Code to facilitate some data processing<br>
//Multiple dimensions become one dimension<br>
function arr_foreach ($arr)<br>
{<br>
static $tmp=array(); <br>
If (!is_array ($arr))<br>
{<br>
return false;
}<br>
foreach ($arr as $val)<br>
{<br>
if (is_array ($val))<br>
{<br>
arr_foreach ($val);<br>
}<br>
else<br>
{<br>
$tmp[]=$val;<br>
}<br>
}<br>
return
}<br> <br>