Beste,
Ik heb het volgende script. Maar weet iemand hoe ik if/else kan veranderen in switch?
Ik heb het volgende script. Maar weet iemand hoe ik if/else kan veranderen in switch?
if (empty($result[list]))
{
print "There are now subdomains.";
}
elseif ($result[error] == 1)
{
print "There was something wrong get the subdomains.";
}
else {
foreach($result[list] as $value => $key){
print "<subdomain>$key.$Domain</subdomain>";
}
} 