OffTopic:
eingesteckt?![]()
Random Funktion ???
Collapse
X
-
So, hier meine endgültige Version (hab 1. euren Tip mit dem Count verwendet, und noch eine weiter Vereinfachung geschrieben):
PHP Code:<?php
$file="array.txt";
$array=file($file);
$i=rand(0, count($array)-1);
echo "<img src=\"".$array[$i]."\">";
?>
bild.jpg
ordner/bild.jpg
Comment
Comment