المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to Randomly select of one element out of an array by php



bahattab
05-12-2009, 11:27 PM
How to Randomly select of one element out of an array by php



Randomly select of one element out of an array:


$image = $image_array[array_rand($image_array)];



http://tips-scripts.com/one_liners_php