function muzik($gelen){
$pop="gülgeb ergen,seda sayan";
$rap="saian,hayki";
$slow="azer bülbül";
$arrayfunciton2 = array("$pop","$rap","$slow");
return explode(",",$arrayfunciton2[$gelen]);
}
print_r(muzik(1));
Konu: function array sorunu
function muzik($gelen){
$pop="gülgeb ergen,seda sayan";
$rap="saian,hayki";
$slow="azer bülbül";
$arrayfunciton2 = array("$pop","$rap","$slow");
return explode(",",$arrayfunciton2[$gelen]);
}
print_r(muzik(1));