D-eye's Blog | Buitenzorg

Function array_diff_uassoc()

Function array_diff_uassoc()

Belajar tutorial php bahasa indonesia - Function array_diff_uassoc()Function array_diff_uassoc() berfungsi untuk membandingkan 2 atau lebih array, dan menghasilkan array dengan kunci dan nilai yang hanya ada di array pertama (tidak ada nilai yang sama dalam array kedua), jika memenuhi persyaratan function.Contohnya :
1<?php
2function fungsinyah($value1,$value2)
3{if($value1===$value2)
4{return 0;}
5if($value1>$value2)
6{return 1;}
7else
8{return -1;}}
9$buah=array('tomat','apel','timun','durian','jagung');
10$sayur=array('tomat','kangkung','timun','bayam','tauge');
11$arr_dua=array_diff_uassoc($buah,$sayur,'fungsinyah');
12print_r($arr_dua);
13//hasilnya Array ( [1] => apel [3] => durian [4] => jagung )
14?>

Copy code contoh function array_diff_uassoc()




Belajar tutorial php bahasa indonesia - function array diff uassoc
Posted Posted: 18 Dec 2012 Author Author: D-eye
Views Views: 2904 Comments Comments: 39 comments
Categories Categories: belajar php
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 ( 39 )

  • D-eye's avatar#5530 D-eye
    [Quote by Unik Addict] kemaren kenapa off situsnya kang...
    biasa ,karena sesuatu :D
    18 May 2013 - 11:14
    Howdy Kisanak
    Reply
  • D-eye's avatar#5529 D-eye
    [Quote by Sumber Info] Izin jajal kang sekalian nitip bekling.. Hehe :D...
    Monggo :D
    18 May 2013 - 11:14
    Howdy Kisanak
    Reply
  • Sumber Info's avatar#5515 Sumber Info
    Izin jajal kang sekalian nitip bekling.. Hehe :D
    17 Apr 2013 - 00:45
    141.0.9.47
    Reply
  • Unik Addict's avatar#5514 Unik Addict
    kemaren kenapa off situsnya kang
    16 Apr 2013 - 18:23
    36.76.188.218
    Reply
  • Informasi's avatar#5511 Informasi
    Vakum ya om? Nitip BL ya :D,
    04 Apr 2013 - 18:45
    141.0.8.134
    Reply

Write comment

Name :

Email :

Website :

Comment :

Kode : 0v8


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 : 2
Hits : 2666/8468561
Hosts : 398/989397

Most commented