ich gebe Artikelinformationen per Zufall aus. Hab das bislang so gelöst:
Code: Alles auswählen
$articleList = new ArticleCollection(array("idcat"=>10));
srand ((double)microtime()*10000);
$maxwert = count($articleList->articles)-1;
$nr = rand(0,$maxwert);
$artnr = $articleList->articles[$nr];
//Ausgabe
$artRightTeaser = new article($artnr, 1, 1);
...
...
Frank