shamuraq Posted May 4, 2009 Share Posted May 4, 2009 Hi Guys to randomise an int, we use (rand). How do i duplicate an image into random number of that single image based on (rand)? Meaning if the output from (rand) is 5, i need 5 of that image to be reflected. Link to comment https://forums.phpfreaks.com/topic/156737-duplicating-image/ Share on other sites More sharing options...
Ken2k7 Posted May 4, 2009 Share Posted May 4, 2009 $rand = rand(); for ($e = 0; $e < $rand; $e++) { echo '<img src="www.mydomain.com/image.gif" />'; } Link to comment https://forums.phpfreaks.com/topic/156737-duplicating-image/#findComment-825345 Share on other sites More sharing options...
shamuraq Posted May 6, 2009 Author Share Posted May 6, 2009 Thanx Ken27k... really appreaciate it... Link to comment https://forums.phpfreaks.com/topic/156737-duplicating-image/#findComment-827340 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.