Home  >  Article  >  php教程  >  shuffle数组值随便排序函数

shuffle数组值随便排序函数

WBOY
WBOYOriginal
2016-06-13 11:18:331022browse

 

shuffle数组值随便排序函数
*/

$typename=20;
$rtitle='tt';
for( $i=0;$i {
 $rtitle_rand = array($typename,$rtitle,$typename);
 shuffle($rtitle_rand);//数组进行随机排序
 echo $rtitle_rand['0'].'
';
}

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn