Das Problem hatte ich auch mal:
<?php
$array = array("md5" => "md5", "md4" => "md4");
$hallo = 'hallo';
// Arraydaten in einen String setzen und mit , trennen
$i = 0;
$s = null;
foreach($array as $alg) {
if($i > 0) {
$s .= ",";
}
$s .= $alg;
$i++;
}
$im = explode(',', $s);
//hashes ausführen...