数组随机排序如何随机排序

WBOY
Release: 2016-06-13 12:20:33
Original
979 people have browsed it

数组随机排序怎么随机排序
在1.2.3.4文本里面随机选择一行,然后组合成一句话,比如:
去干嘛,去吃饭,太好了,么么哒
或者
太好了,吃饱了,做什么,开心

------解决思路----------------------
在 $filenames=array('1.txt','2.txt','3.txt','4.txt'); 下面加上这一句
shuffle($filenames);

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!