$getSlug = function($koluslug, $slyg) {
for ($x=1; $x<=$koluslug; $x++ ){
$slugSql2 = mysql_fetch_assoc(mysql_query("SELECT * FROM `info3` WHERE id='$slyg[$x]'")); echo $slugSql2['name'];
}
};
$slug = $getSlug($koluslug, $slyg);