freja
Uploaded by
6 SLIDES
310 VUES
90LIKES

Perancangan dan Pemrograman Web (PPW)

DESCRIPTION

Perancangan dan Pemrograman Web (PPW). Pertemuan 9 PHP Conditional. PHP Conditional. Mengakses Server. 1 kasus Gunakan 1 if if (kondisi) then aksi Di dalam PHP jadinya if (kondisi) aksi Jika aksi lebih dari 1 baris gunakan { } If (kondisi){ subaksi1; subaksi2; }.

1 / 6

Télécharger la présentation

Perancangan dan Pemrograman Web (PPW)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Perancangan dan Pemrograman Web(PPW) Pertemuan 9 PHP Conditional

  2. PHP Conditional Mengakses Server • 1 kasus Gunakan 1 if if(kondisi) then aksi Di dalam PHP jadinya if(kondisi) aksi Jika aksi lebih dari 1 baris gunakan { } If(kondisi){ subaksi1; subaksi2; }

  3. PHP Conditional • 2 kasus Gunakan 2 if if kondisi1 then aksi1 elseif kondisi2 thenaksi2 Di dalam PHP jadinya if(kondisi1) aksi1; else (kondisi2) aksi2; Jika aksi lebih dari 1 baris gunakan {}

  4. PHP Conditional • N kasus Gunakan N if if kondisi1 then aksi1 elseif kondisi2 thenaksi2 elseifkondisiN-1 then aksiN-1 elsekondisiNthenaksiN

  5. PHP Conditional • Penggunaan if yang banyak dapat disederhanakan menggunakan case. Akan tetapi tidak semuanya bisa dibuat dalam bentuk case switch($pilihan){ case 1 : aksi1;break; case 2 : aksi2;break; ...... case N : aksiN;break; default : aksiDefault; }

  6. SEKIAN

More Related
SlideServe
Audio
Live Player
Audio Wave
Play slide audio to activate visualizer