How To Perish A Random Value From Array Inwards Php?
If you lot don't hear picking the same detail ane time to a greater extent than at another fourth dimension as well as thence you lot tin go purpose next code:
Sumber http://developer-paradize.blogspot.com
<?php $items = array(1,5); echo $items[rand(0, count($items) - 1)]; ?>It volition display a random release from the elements of array. 1 or three or five or 1 .......
Sumber http://developer-paradize.blogspot.com
Comments
Post a Comment