Skip to content

Instantly share code, notes, and snippets.

@ilhamarrouf
Created December 5, 2016 23:41
Show Gist options
  • Save ilhamarrouf/3c45713279d9de04e2ce18e203b0668e to your computer and use it in GitHub Desktop.
Save ilhamarrouf/3c45713279d9de04e2ce18e203b0668e to your computer and use it in GitHub Desktop.
Struktur Kontrol PHP
<?php
$nilai = 90;
if ($nilai > 60) {
echo 'nilai cukup';
} elseif ($nilai >70) {
echo 'niilai baik';
} elseif ($nilai > 90) {
echo 'nilai sangat baik';
} else {
echo 'nilai kurang';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment