P. 1
8 Modul Php Dasar

8 Modul Php Dasar

|Views: 3,901|Likes:
Published by muhsoleh17

More info:

Published by: muhsoleh17 on Jul 25, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

07/21/2013

pdf

text

original

www.nurulfikri.com 7874223 / 24

14

Program Reguler & Inhouse

PHP Dasar

Example

Name

Result

$a + $b

Union

Union dari array $a dan $b.

$a == $bEquality

TRUE jika array $a dan $b memiliki element-
element yang sama .

$a === $bIdentity

TRUE jika array $a dan $b memiliki element-
element yang sama dalam urutan yang sama.

$a != $bInequalityTRUE jika array $a tidak sama dengan $b.

$a <> $bInequalityTRUE jika array $a tidak sama dengan $b.

$a !== $bNon-

identity

TRUE jika array $a tidak identik dengan $b.

Tabel-6. Operator Array

1 2 $a = array("a" => "apple", "b" => "banana");
3 $b = array("a" => "pear", "b" => "strawberry", "c" => "cherry");
4
5 $c = $a + $b; // Union of $a and $b
6 echo "Union of \$a and \$b: \n";
7 var_dump($c);
8
9 $c = $b + $a; // Union of $b and $a
10 echo "Union of \$b and \$a: \n";
11 var_dump($c);
?>

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->