Saya mau tanya, saya sudah masukkan kodenya dengaan benar tapi kok malah muncul kode ini. Kode outputnya ada dibawah
$buah = "Apel";
switch ($buah) {
case 'Apel':
echo "Enak..!";
break;
// tambah default
$buah = "Apel";
switch ($buah) {
case 'Apel':
echo "Enak..!";
break;
}
Parse error: syntax error, unexpected end of file in your code on line 14.
Sekian dan terima kasih
0 jempol
tommy27
98
0
·
9 tahun, 8 bulan yang lalu
·
0 jempol
$buah = "Apel";
switch ($buah) {
case 'Apel':
echo "Enak..!";
break;
// tambah default
default:
echo "buah apa ini?!";
break;
}
coba kode ini bro :)