php: random variabele

Pagina: 1
Acties:
  • 51 views sinds 30-01-2008

  • fromalk
  • Registratie: Januari 2004
  • Laatst online: 15-01 14:35
K had graag via een rand() functie of andere willekeurg een variabele opgeroepen...
http://be.php.net/manual/nl/function.rand.php bracht me niet verder...
voorlopig zijn de variabele:
$tit1
$tit2
$tit3
$tit4

  • Bosmonster
  • Registratie: Juni 2001
  • Laatst online: 10-05 18:53

Bosmonster

*zucht*

ehh right..


je topic snapt niemand.. en staat ook nog eens in het verkeerde forum.

  • Bosmonster
  • Registratie: Juni 2001
  • Laatst online: 10-05 18:53

Bosmonster

*zucht*

ff wachten hoor.. heb net blijkbaar mn sluit-dropdowntje weg-gecss'ed :P

  • Pelle
  • Registratie: Januari 2001
  • Laatst online: 23-05 16:31

Pelle

🚴‍♂️

PHP:
1
2
3
4
5
srand((double) microtime() * 1000000);
$j = rand(10,100);
for ($i = 0; $i <= $j; $i++) {
    print 'http://www.php.net<br />' . "\n";
}

  • Bosmonster
  • Registratie: Juni 2001
  • Laatst online: 10-05 18:53

Bosmonster

*zucht*

heb mn boxje weer terug! :P

Dit topic is gesloten.