<html> <head> <title> contoh arrray </title> </head> <body> <?php $buah = array ("Jeruk", "Mangga", "Semangka", "Sirsak", "Apel"); print("$buah[0] <BR>\n"); print("$buah[1] <BR>\n"); print("$buah[2] <BR>\n"); print("$buah[3] <BR>\n"); print("$buah[4] <BR>\n"); printf("Jumlah Elemen Array : %d", count($buah)); ?> </body> </html>