我有一個(gè)數(shù)組叫做 $ran = array(1,2,3,4);我需要從該數(shù)組中獲取一個(gè)隨機(jī)值并將其存儲(chǔ)在變量中,我該怎么做?
如何從數(shù)組中獲取隨機(jī)值?
尚方寶劍之說(shuō)
2019-12-13 15:10:54