ShoxMaster
Постоялец
- Регистрация
- 3 Дек 2008
- Сообщения
- 395
- Реакции
- 151
PHP:
$fruits = array("title", "title1", "title2", "title3");
$fruits1 = array("des", "des1", "des2", "des3");
$fruits2 = array("thumb", "thumb1", "thumb1", "thumb3");
$i=rand()%count($fruits);
$res = array($fruits[$i], $fruits1[$i], $fruits2[$i]);
foreach($res as $a)
echo $a." ";