Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Be pavadinimo

Parašė ibodom· 2008 Vas. 23 17:02:46
#10

Mhm palauk biski ;)

EDIT: nu ly ir gerai sumasciau ;)

$banners = array('txt1','txt2','txt2','txt4','txt6=5',);
$cc = count($banners) ;
$cl = $cc-1;


do {
$rand = rand(0,$cl);
$rand2 = rand(0,$cl);
$rand3 = rand(0,$cl);
} while ($rand != $rand2 or $rand2!=$rand3 or $rand!=$rand3);
echo " $banners[$rand];
$banners[$rand2];
$banners[$rand3];";



Redagavo ibodom· 2008 Vas. 23 17:02:52