Join Up!
104887 members and counting!

 
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previousZeichenketten-OperatorenKontroll-Strukturennext
Last updated: Mon, 28 Oct 2002
view the printer friendly version or the printer friendly version with notes

Array Operatoren

Der einzige Array Operator in PHP ist der + Operator. Das rechsstehende Array wird an das linksstehende Array angehängt, wobei doppelte Schlüssel NICHT überschrieben werden.

$a = array("a" => "Apfel", "b" => "Banane");
$b = array("a" =>"pear", "b" => "Erdbeere", "c" => "Kirsche");

$c = $a + $b;

var_dump($c);
array(3) {
  ["a"]=>
  string(5) "Apfel"
  ["b"]=>
  string(6) "Banane"
  ["c"]=>
  string(7) "Kirsche"
}

User Contributed Notes
Array Operatoren
add a note about notes
There are no user contributed notes for this page.
previousZeichenketten-OperatorenKontroll-Strukturennext
Last updated: Mon, 28 Oct 2002
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: http://phpbuilder.com/
Last updated: Thu Oct 31 18:34:28 2002 EST