Php Switch

muho61

Paylaşım Ekibi
Üyelik Tarihi
23 Aralık 2020
Mesajlar
262
Beğeniler
2
Ticaret: 0 / 0 / 0
Kod:
<!DOCTYPE html> <html> <body> <?php $favcolor = "red"; switch ($favcolor) {      case "red":          echo "Your favorite color is red!";          break;      case "blue":          echo "Your favorite color is blue!";          break;      case "green":          echo "Your favorite color is green!";          break;      default:          echo "Your favorite color is neither red, blue, or green!"; } ?>   </body> </html>
 
Üst