Holladiewaldfee,
http://www.php.net/manual/en/function.rand.php
da steht kein beispiel nur ne syntax...
Das war auch so gedacht. Denn hier werden normalerweise keine fertigen Lösungen präsentiert, sondern Hinweise gegeben, wie man sich selber eine erarbeiten kann.
$x = array("a", "b", "c");
$x = rand($x);geht nicht.
Klar. Ist ja auch Schmarn.
Da steht:
int rand ( [int min, int max])
Also:
$x = array("a", "b", "c");
$zufallswert = $x[rand(0,2)];
Ciao,
Harry
--
(There are only 10 types of people in this world: Those who understand binary and those who don't)
(There are only 10 types of people in this world: Those who understand binary and those who don't)