Advertisement
fqrmix

Untitled

Oct 14th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None | 0 0
  1.     <?php
  2.     $rand_video = [
  3.             1 => 'name1.mp4',
  4.             2 => 'name2.mp4',
  5.             3 => 'name3.mp4',
  6.             4 => 'name4.mp4'
  7.         ];
  8. echo '<video id="video" src="'.$rand_video[rand(1,4)].'" autoplay loop></video>';
  9. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement