D-eye's Blog | Buitenzorg

Function array_merge()

Function array_merge()

Belajar tutorial php bahasa indonesia - Function array_merge()Function array_merge() berfungsi untuk menggabungkan dua atau lebih array .Syntax nya sebagai berikut :
array_merge(array1,array2,array3,dst);
Contoh 1 (menggunakan array numerik) :
1<?php
2$array1=array('nama','alamat','hobi');
3$array2=array('siapa','dimana','ngapain');
4$array3=array('deye','bogor','nyari kodok');
5$hasil=array_merge($array1,$array2,$array3);
6print_r($hasil);
7//hasil
8Array ( [0] => nama [1] => alamat [2] => hobi [3] => siapa [4] => dimana [5] => ngapain [6] => deye [7] => bogor [8] => nyari kodok )
9?>[code]
10Contoh 2 (menggunakan array assosiatif) :
11[code]<?php
12$array1=array('nama'=>'nimi','alamat'=>'ilimit','hobi'=>'hibi');
13$array2=array('siapa'=>'siipi','dimana'=>'dimini','ngapain'=>'ngipiin');
14$array3=array('deye'=>'diyi','bogor'=>'bigir','nyari kodok'=>'nyiri kidik');
15$hasil=array_merge($array1,$array2,$array3);
16print_r($hasil);
17//hasil
18Array ( [nama] => nimi [alamat] => ilimit [hobi] => hibi [siapa] => siipi [dimana] => dimini [ngapain] => ngipiin [deye] => diyi [bogor] => bigir [nyari kodok] => nyiri kidik )
19?>


Belajar tutorial php bahasa indonesia - Function array_merge()
Posted Posted: 09 Jun 2013 Author Author: D-eye
Views Views: 3943 Comments Comments: 58 comments
Categories Categories: belajar php
Tags Tags: function,array,tutorial,merge
Share Share: Twitter, Facebook, Reddit, Digg

Incoming search terms :

How to get Earning from website
How to get Earning from wapsite

Blog Title Comment
 

Write | View comments ( 58 )

  • Belajar's avatar#5803 Belajar
    Hello.. Wow terakhir update 2013?
    28 Mar 2018 - 20:45
    36.81.53.185
    Reply
  • Khoirul Anwar's avatar#5799 Khoirul Anwar
    [Quote by Confignet] Update donk gan :D...
    Carablogger.net Berbagi tutorial seputar blogging, adsense dan SEO
    03 Jan 2018 - 18:41
    112.215.201.133
    Reply
  • Confignet's avatar#5798 Confignet
    Update donk gan :D
    27 Dec 2017 - 06:54
    120.188.78.37
    Reply
  • Firmadi Libra's avatar#5797 Firmadi Libra
    Nitip link
    03 Sep 2017 - 19:27
    162.158.165.180
    Reply
  • Vitube Id's avatar#5795 Vitube Id
    ditungu php grab youtube nya
    26 Mar 2017 - 01:37
    108.162.246.139
    Reply

Write comment

Write comment in Function array_merge()
Name :

Email :

Website :

Comment :

Kode : 5v7


Bbcode ON | Smiley ON

Category

Belajar seo ( 11 )
Belajar mysql ( 8 )
Kontes ( 1 )
Belajar php ( 21 )
Php script ( 25 )
Dbs ( 29 )
Themes ( 6 )
Tips dan trick ( 14 )
Umum ( 25 )

Archive

Statistic

Online : 4
Hits : 1305/9958084
Hosts : 442/1178768

Most commented