xooromat
Junior Member
- Feb 2, 2011
- 145
- 65
Hi
i've got a problem with php... i'm totally new to php
I've got that php:
and it works fine! It outputs a random number from my list.txt!
But I need that random number 6 times in my php file. but when I use it 6 times I get 6 random numbers....
I guess it's pretty easy to solve that problem... well i hope so!
Thanks!
i've got a problem with php... i'm totally new to php
I've got that php:
PHP:
<?php$file = "list.txt";$random = file($file);echo $random[array_rand($random)]; ?>
But I need that random number 6 times in my php file. but when I use it 6 times I get 6 random numbers....
I guess it's pretty easy to solve that problem... well i hope so!
Thanks!