Thread Hashes auslesen! (5 answers)
Opened by bandchef at 2014-05-05 09:09

GwenDragon
 2014-05-05 11:02
#175209 #175209
User since
2005-01-17
14748 Artikel
Admin1
[Homepage]
user image
Mit
Code: (dl )
1
2
3
4
5
6
$food_color =   (
Raspberry => "blue",
Apple => "green",
Banana => "yellow",
Cherry => "red"
);

weist du dem Skalar $food_color den letzten Wert aus der Liste
 ( Raspberry => "blue", Apple => "green", Banana => "yellow", Cherry => "red") zu.
$food_color enthält nämlich red.

 ( Raspberry => "blue", Apple => "green", Banana => "yellow", Cherry => "red") bedeutet nämlich:
 ( "Raspberry", "blue", "Apple", "green", "Banana","yellow", "Cherry","red")

Editiert von GwenDragon: Zuweisung aus Liste erklärt
Last edited: 2014-05-05 11:06:01 +0200 (CEST)

View full thread Hashes auslesen!