Contact:
Homepage : http://www.ilmuwebsite.com
Ingin menjadi penulis artikel di ilmuwebsite? Klik >> Daftar
Di bagian ini kita akan membahas
- Define
- PHP Decision Making
Ok kita mulai
Penggunaan fungsi “else”
Sebagai penalaran anda asumsikan “else” sebagai “jika tidak”
Contoh:
if (kondisi expresi)
{
kode anda;
}
else
{
kode anda;
}
Contoh Penerapan:
if ($user == b_scorpio)
{
echo “user anda b_scorpio”;
}
else
{
echo “anda bukan b_scorpio”;
}
?>
Contoh Penerapan untuk user autentifikasi:
if ($user == b_scorpio && $password == 8_5c0rp10)
{
echo “anda berhasil login”;
}
else
{
echo “anda tidak bisa login”;
}
?>
Penggunaan fungsi “elseif”
“elseif” di gunakan untuk, statment “if” lebih dari satu
Contoh Penerapan untuk user autentifikasi:
————–
if ($user == b_scorpio)
{
echo “anda login sebagai $user”;
}
elseif ($user == alk)
{
echo “anda login sebagai $user”;
}
elseif ($user == johan)
{
echo “anda login sebagai $user”;
}
else
{
echo “anda tidak bisa login”;
}
?>
Implementasi dari Penerapan untuk user autentifikasi, lebih lanjut Anda bisa lihat di bagian PHP Tutorial
Cari artikel lain :

Template Joomla CD koleksi template joomla berkualias, cantik, indah dan menarik, di kemas dalam 4 CD, dapatkan di sini ...
Paket CD Hacking v3Tools, Articles, Movies, Exploits, Trojans, Programming, PDA, Advisories, Mobile, BT4
Ilmuwebsite Services1. Joomla2Wordpress Conversion Services kami akan mengkonversi mirip dengan website aslinya, 2. PSD/JPEG to CMS? Anda desain kami jadikan CMS. Klik disini

ilmuwebsite.com (webmaster resource center) adalah tempat belajar 
Nulled Script








