Tag: random images show on page

Random/Shuffle Images in PHP

shuffle function in php Hello friends, Sometimes we need to show random images on your page on every refresh. user will see random images. suppose if we have blog that have 50 images using php shuffle function we will show random images on our home page. shuffle() function randomizes the order of the elements in the array.shuffle function assigns new keys for the elements in the array. Existing keys will Read more…