$random_logo = [ 'url_1', 'url_2', 'url_3' ]; shuffle($random_logo); echo '<img src="'.$random_logo[0].'" alt="Logo">';