Array di PHP adalah jenis struktur data yang memungkinkan kita untuk menyimpan banyak elemen dari tipe data yang serupa di bawah satu variabel sehingga menghemat upaya untuk membuat variabel yang berbeda untuk setiap data. Array berguna untuk membuat daftar elemen dengan tipe serupa, yang dapat diakses menggunakan indeks atau kuncinya. Misalkan kita ingin menyimpan lima nama dan mencetaknya sesuai dengan itu. Ini dapat dengan mudah dilakukan dengan menggunakan lima variabel string yang berbeda. Tetapi jika bukannya lima, angkanya naik menjadi seratus, maka akan sangat sulit bagi pengguna atau pengembang untuk membuat begitu banyak variabel yang berbeda. Di sini array berperan dan membantu kita menyimpan setiap elemen dalam satu variabel dan juga memungkinkan akses mudah menggunakan indeks atau kunci. Array dibuat menggunakan fungsi array() di PHP Show Pada dasarnya ada tiga jenis array di PHP.
Array Berindeks atau Numerik Jenis array ini dapat digunakan untuk menyimpan semua jenis elemen, tetapi indeks selalu berupa angka. Secara default, indeks dimulai dari nol. Array ini dapat dibuat dengan dua cara berbeda seperti yang ditunjukkan pada contoh berikut. PHP
Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV0 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV1 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV2 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV3 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV4 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV3 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV6 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV3 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV8________0______3_______10_____10_____10_____1
Accessing the elements directly: zara sara any Rani Ravina_2 Accessing the elements directly: zara sara any Rani Ravina3 Accessing the elements directly: zara sara any Rani Ravina4 Accessing the elements directly: zara sara any Rani Ravina5 Accessing the elements directly: zara sara any Rani Ravina3 $name_one Accessing the elements directly: zara sara any Rani Ravina8 Accessing the elements directly: zara sara any Rani Ravina9 Accessing the elements directly: zara sara any Rani Ravina5 Accessing the elements directly: zara sara any Rani Ravina3 $name_one Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina3 Accessing the elements directly: zara sara any Rani Ravina9 Accessing the elements directly: zara sara any Rani Ravina5 Accessing the elements directly: zara sara any Rani Ravina3 $name_one Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina8 Accessing the elements directly: zara sara any Rani Ravina9 Accessing the elements directly: zara sara any Rani Ravina5
Dave Punk email-id is: [email protected] John Flinch mobile number is: 98751475361 Dave Punk email-id is: [email protected] John Flinch mobile number is: 98751475362 Dave Punk email-id is: [email protected] John Flinch mobile number is: 98751475363 Dave Punk email-id is: [email protected] John Flinch mobile number is: 98751475364 Accessing the elements directly: zara sara any Rani Ravina5 Dave Punk email-id is: [email protected] John Flinch mobile number is: 98751475362 Dave Punk email-id is: [email protected] John Flinch mobile number is: 98751475367 Dave Punk email-id is: [email protected] John Flinch mobile number is: 98751475368 Accessing the elements directly: zara sara any Rani Ravina5 Dave Punk email-id is: [email protected] John Flinch mobile number is: 98751475362 Dave Punk mob : 2584369721 email : [email protected] John Flinch mob : 9875147536 email : [email protected]1 Dave Punk mob : 2584369721 email : [email protected] John Flinch mob : 9875147536 email : [email protected]2 Accessing the elements directly: zara sara any Rani Ravina5 Dave Punk email-id is: [email protected] John Flinch mobile number is: 98751475362 Dave Punk mob : 2584369721 email : [email protected] John Flinch mob : 9875147536 email : [email protected]5 Dave Punk mob : 2584369721 email : [email protected] John Flinch mob : 9875147536 email : [email protected]6 Accessing the elements directly: zara sara any Rani Ravina5 Dave Punk email-id is: [email protected] John Flinch mobile number is: 98751475362 Dave Punk mob : 2584369721 email : [email protected] John Flinch mob : 9875147536 email : [email protected]9 <?php 0Accessing the elements directly: zara sara any Rani Ravina5
Accessing the elements directly: zara sara any Rani Ravina_2 Accessing the elements directly: zara sara any Rani Ravina3 <?php 4Accessing the elements directly: zara sara any Rani Ravina5 Accessing the elements directly: zara sara any Rani Ravina3 Dave Punk email-id is: [email protected] John Flinch mobile number is: 98751475362 Accessing the elements directly: zara sara any Rani Ravina8 Accessing the elements directly: zara sara any Rani Ravina9 Accessing the elements directly: zara sara any Rani Ravina5 Accessing the elements directly: zara sara any Rani Ravina3 Dave Punk email-id is: [email protected] John Flinch mobile number is: 98751475362 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina3 Accessing the elements directly: zara sara any Rani Ravina9 Accessing the elements directly: zara sara any Rani Ravina5 Accessing the elements directly: zara sara any Rani Ravina3 Dave Punk email-id is: [email protected] John Flinch mobile number is: 98751475362 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina8 Accessing the elements directly: zara sara any Rani Ravina9 Accessing the elements directly: zara sara any Rani Ravina5
Keluaran. Accessing the 1st array elements directly: Ram Zack Raghav Accessing the 2nd array elements directly: RAM ZACK RAGHAV Melintasi. Kita dapat melintasi array yang diindeks menggunakan loop di PHP. Kita dapat mengulang array yang diindeks dengan dua cara. Pertama dengan menggunakan for loop dan kedua dengan menggunakan foreach. Anda bisa merujuk ke PHP. Loop untuk sintaks dan penggunaan dasar. Contoh. PHP
Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV0 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV1 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV2 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV3 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV4 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV3 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV6 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV3 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV8________0______3_______10_____10_____10_____1
Accessing the elements directly: zara sara any Rani Ravina3 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV00 Accessing the elements directly: zara sara any Rani Ravina5 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV02 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV1 $name_one Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV05 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV06 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV07 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV08 Accessing the elements directly: zara sara any Rani Ravina3 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV06 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV11 Accessing the elements directly: zara sara any Rani Ravina9 Accessing the elements directly: zara sara any Rani Ravina5 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV_14
Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV_15 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV_16 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV17 = Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV19 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV1 $name_one Accessing the elements directly: zara sara any Rani Ravina1 Accessing the elements directly: zara sara any Rani Ravina3 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV24 Accessing the elements directly: zara sara any Rani Ravina5
Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV_26 Accessing the elements directly: zara sara any Rani Ravina_3 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV28 Accessing the elements directly: zara sara any Rani Ravina5 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV30 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV1 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV32 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV33 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV32 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV35 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV17 Accessing the elements directly: zara sara any Rani Ravina5 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV32________0______39 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV08 Accessing the elements directly: zara sara any Rani Ravina3 $name_one Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV43 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV32 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV45 Accessing the elements directly: zara sara any Rani Ravina9 Accessing the elements directly: zara sara any Rani Ravina5 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV_14
Keluaran. Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV Array asosiatif Jenis array ini mirip dengan array yang diindeks tetapi alih-alih penyimpanan linier, setiap nilai dapat ditetapkan dengan kunci tipe string yang ditentukan pengguna. Contoh. PHP
Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV_51
Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV0 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV1 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV2 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV58 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV3 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV4 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57________0______62 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV3 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV64 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV6 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV67 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV3 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV8 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV71 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV3 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV64 Accessing the elements directly: zara sara any Rani Ravina0 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV76 Accessing the elements directly: zara sara any Rani Ravina1
Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV_78 Dave Punk email-id is: [email protected] John Flinch mobile number is: 98751475362 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV43 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV81 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV82 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV83 Accessing the elements directly: zara sara any Rani Ravina5 Dave Punk email-id is: [email protected] John Flinch mobile number is: 98751475362 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV43 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV87 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV82 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV89 Accessing the elements directly: zara sara any Rani Ravina5 ________28______2 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV43 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV93 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV82 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV95 Accessing the elements directly: zara sara any Rani Ravina5 Dave Punk email-id is: [email protected] John Flinch mobile number is: 98751475362 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV43 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV99 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV82 Accessing the elements directly: zara sara any Rani Ravina01 Accessing the elements directly: zara sara any Rani Ravina5 Dave Punk email-id is: [email protected] John Flinch mobile number is: 98751475362 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV43 Accessing the elements directly: zara sara any Rani Ravina05 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV82 Accessing the elements directly: zara sara any Rani Ravina07 Accessing the elements directly: zara sara any Rani Ravina5
Accessing the elements directly: zara sara any Rani Ravina_2 Accessing the elements directly: zara sara any Rani Ravina_3 Accessing the elements directly: zara sara any Rani Ravina11 Accessing the elements directly: zara sara any Rani Ravina5 Accessing the elements directly: zara sara any Rani Ravina3 Dave Punk email-id is: [email protected] John Flinch mobile number is: 98751475362 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV43 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV81 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV45 Accessing the elements directly: zara sara any Rani Ravina9 Accessing the elements directly: zara sara any Rani Ravina5 Accessing the elements directly: zara sara any Rani Ravina3 Dave Punk email-id is: [email protected] John Flinch mobile number is: 98751475362 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV43 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV99 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV45 Accessing the elements directly: zara sara any Rani Ravina9 Accessing the elements directly: zara sara any Rani Ravina5 Accessing the elements directly: zara sara any Rani Ravina3 Dave Punk email-id is: [email protected] John Flinch mobile number is: 98751475362 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV43 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV87 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV45 Accessing the elements directly: zara sara any Rani Ravina9 Accessing the elements directly: zara sara any Rani Ravina5 Accessing the elements directly: zara sara any Rani Ravina3 $name_one Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV43 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV6 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV45 Accessing the elements directly: zara sara any Rani Ravina9 Accessing the elements directly: zara sara any Rani Ravina5 Accessing the elements directly: zara sara any Rani Ravina3 $name_one Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV43 Accessing the elements directly: zara sara any Rani Ravina0 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV45 Accessing the elements directly: zara sara any Rani Ravina9 Accessing the elements directly: zara sara any Rani Ravina5
Keluaran. Accessing the elements directly: zara sara any Rani Ravina Melintasi Array Asosiatif. Kita dapat melintasi array asosiatif dengan cara yang sama seperti dalam array numerik menggunakan loop. Kita dapat mengulang array asosiatif dengan dua cara. Pertama dengan menggunakan for loop dan kedua dengan menggunakan foreach. Anda bisa merujuk ke PHP. Loop untuk sintaks dan penggunaan dasar. Contoh. PHP
Accessing the elements directly: zara sara any Rani Ravina_50
Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV0 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV1 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV2 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV58 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV3 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV4 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57________0______62 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV3 Accessing the elements directly: zara sara any Rani Ravina63 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV6 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV67 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV3 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV8 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV71 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV3 Accessing the elements directly: zara sara any Rani Ravina63 Accessing the elements directly: zara sara any Rani Ravina0 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV76 Accessing the elements directly: zara sara any Rani Ravina1
Accessing the elements directly: zara sara any Rani Ravina_77 Accessing the elements directly: zara sara any Rani Ravina3 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV00 Accessing the elements directly: zara sara any Rani Ravina5 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV02 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV1 $name_one Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV05 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV06 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Accessing the elements directly: zara sara any Rani Ravina87 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV07 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV08 Accessing the elements directly: zara sara any Rani Ravina3 Accessing the elements directly: zara sara any Rani Ravina91 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV11 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV06 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV11 Accessing the elements directly: zara sara any Rani Ravina95 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV11 Accessing the elements directly: zara sara any Rani Ravina87__________0______11________10____1______5 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV_14
Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina02 Accessing the elements directly: zara sara any Rani Ravina3 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina04 Accessing the elements directly: zara sara any Rani Ravina5 ________21______06 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina08 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV1 Dave Punk email-id is: [email protected] John Flinch mobile number is: 98751475362 Accessing the elements directly: zara sara any Rani Ravina1 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV17 = Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV19 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV1 Dave Punk email-id is: [email protected] John Flinch mobile number is: 98751475362 Accessing the elements directly: zara sara any Rani Ravina1
Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV30 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV1 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina20 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina21 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina20 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV35 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV17 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina21_______25 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina20________21______27 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV08 Accessing the elements directly: zara sara any Rani Ravina3 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina06 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV43 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina20 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina_______ Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina_____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________F Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV_14
Keluaran. Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina Array Multidimensi Array multi-dimensi adalah array yang menyimpan array lain di setiap indeks, bukan satu elemen. Dengan kata lain, kita dapat mendefinisikan array multidimensi sebagai array dari array. Seperti namanya, setiap elemen dalam array ini bisa menjadi array dan mereka juga bisa menampung sub-array lain di dalamnya. Array atau sub-array dalam array multidimensi dapat diakses menggunakan banyak dimensi. Contoh. PHP
Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina_47 ________21______48 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV0 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV1 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV08 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV0 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV1 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina55 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina56 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina58________0______3 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina55 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina61 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina63________0______3 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina55 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina66 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina68 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV3 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV08 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina71 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV08 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV0 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV1 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina55 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina56 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina78 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV3 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina55 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina61 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina83________0______3 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina55 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina66 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina88 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV3 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV08 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina71 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV08 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV0 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV1 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina55 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina56 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina98 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV3 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina55 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina61 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Dave Punk email-id is: [email protected] John Flinch mobile number is: 987514753603________0______3 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina55 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina66 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Dave Punk email-id is: [email protected] John Flinch mobile number is: 987514753608 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV3 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV08 Dave Punk email-id is: [email protected] John Flinch mobile number is: 987514753611 Accessing the elements directly: zara sara any Rani Ravina_1
Dave Punk email-id is: [email protected] John Flinch mobile number is: 9875147536_13 Accessing the elements directly: zara sara any Rani Ravina3 Dave Punk email-id is: [email protected] John Flinch mobile number is: 987514753615 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV11 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina48 Dave Punk email-id is: [email protected] John Flinch mobile number is: 987514753618 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina66 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV45 Accessing the elements directly: zara sara any Rani Ravina9 Accessing the elements directly: zara sara any Rani Ravina5 Accessing the elements directly: zara sara any Rani Ravina3 Dave Punk email-id is: [email protected] John Flinch mobile number is: 987514753624 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV11 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina48 Dave Punk email-id is: [email protected] John Flinch mobile number is: 987514753627 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina61 Dave Punk email-id is: [email protected] John Flinch mobile number is: 987514753629
Keluaran. Dave Punk email-id is: [email protected] John Flinch mobile number is: 9875147536 Melintasi Array Multidimensi. Kita dapat melintasi array multidimensi menggunakan for dan foreach loop dengan cara bersarang. Artinya, satu untuk loop untuk array luar dan satu untuk loop untuk array dalam Contoh. PHP
Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina_47 ________21______48 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV0 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV1 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV08 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina58 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV0 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV1 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina55 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina61 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina63________0______3 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina55 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina66 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina68 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV3 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV08 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina71 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV08 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina58 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV0 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV1 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina55 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina61 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina83________0______3 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina55 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina66 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina88 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV3 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV08 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina71 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV08 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina98 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV0 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV1 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina55 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina61 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Dave Punk email-id is: [email protected] John Flinch mobile number is: 987514753603________0______3 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina55 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina66 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV57 Dave Punk email-id is: [email protected] John Flinch mobile number is: 987514753608 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV3 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV08 Dave Punk email-id is: [email protected] John Flinch mobile number is: 987514753611 Accessing the elements directly: zara sara any Rani Ravina_1
Dave Punk email-id is: [email protected] John Flinch mobile number is: 9875147536_89 ________21______06 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina08 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV1 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina48 Accessing the elements directly: zara sara any Rani Ravina1 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV30 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV1 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina20 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV33 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina20 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV35 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV19 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV1 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina48_______ Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV_1________21_____38____0 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV08 Accessing the elements directly: zara sara any Rani Ravina3 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina06 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV43 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina20 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina33 Accessing the elements directly: zara sara any Rani Ravina9 Accessing the elements directly: zara sara any Rani Ravina5 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV08 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV02 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV1 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina48 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV43 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina06 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV43 Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina___________________________________________________5 Dave Punk mob : 2584369721 email : [email protected] John Flinch mob : 9875147536 email : [email protected]__________________________________________________________________________________________________________________________________________________ Looping using foreach: Husband is Zack and Wife is Zara Husband is Anthony and Wife is Any Husband is Ram and Wife is Rani Husband is Salim and Wife is Sara Husband is Raghav and Wife is Ravina Looping using for: zack zara anthony any ram rani salim sara raghav ravina55 Accessing the elements directly: zara sara any Rani Ravina3 Dave Punk mob : 2584369721 email : [email protected] John Flinch mob : 9875147536 email : [email protected]26 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV11________38______34 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV11 Dave Punk mob : 2584369721 email : [email protected] John Flinch mob : 9875147536 email : [email protected]28 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV11 Accessing the elements directly: zara sara any Rani Ravina9 Accessing the elements directly: zara sara any Rani Ravina5 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV08 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV14 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV08 Accessing the elements directly: zara sara any Rani Ravina3 Accessing the elements directly: zara sara any Rani Ravina9 Accessing the elements directly: zara sara any Rani Ravina5 Looping using foreach: Zack Anthony Ram Salim Raghav The number of elements is 5 Looping using for: ZACK ANTHONY RAM SALIM RAGHAV_14
Keluaran. Dave Punk mob : 2584369721 email : [email protected] John Flinch mob : 9875147536 email : [email protected] Artikel ini disumbangkan oleh Chinmoy Lenka. Jika Anda menyukai GeeksforGeeks dan ingin berkontribusi, Anda juga dapat menulis artikel menggunakan tulis. geeksforgeeks. org atau kirimkan artikel Anda ke review-team@geeksforgeeks. org. Lihat artikel Anda muncul di halaman utama GeeksforGeeks dan bantu Geeks lainnya PHP adalah bahasa skrip sisi server yang dirancang khusus untuk pengembangan web. Anda dapat mempelajari PHP dari bawah ke atas dengan mengikuti Tutorial PHP dan Contoh PHP ini Bagaimana cara mengakses kunci array di PHP?Jika Anda memiliki nilai dan ingin menemukan kuncinya, gunakan array_search() seperti ini. $arr = array('pertama' => 'a', 'kedua' => 'b', ); .
Bagaimana Anda mengakses array?Mengakses Elemen Array
. Indeks array dimulai dari 0 dan diakhiri dengan ukuran-1. nama_array[indeks]; . use the name of the array name followed by the index of the element in square brackets. Array indices start at 0 and end at size-1: array_name[index]; accesses the index'th element of array_name starting at zero.
Bagaimana cara membuat dan mengakses array di PHP?Sangat mudah untuk membuat larik dalam skrip PHP. Untuk membuat array, Anda menggunakan konstruksi array(). $myArray = array( values ); Untuk membuat array terindeks, cukup cantumkan nilai array di dalam tanda kurung, dipisahkan dengan koma.
Bagaimana cara memanggil array di PHP?Untuk membuat array di PHP, kita menggunakan fungsi array array(). Secara default, array variabel apa pun dimulai dengan indeks 0. Jadi, setiap kali Anda ingin memanggil nilai pertama dari sebuah array, Anda mulai dengan 0 kemudian selanjutnya adalah 1. dan seterusnya. . Array Numerik/Terindeks Array asosiatif Array Multidimensi |