Home >Backend Development >PHP Tutorial >商品无序排列SegmentFault

商品无序排列SegmentFault

WBOY
WBOYOriginal
2016-06-06 20:19:461122browse

有五类商品a b c d e 当用户点击全部时这五类商品能无序排列,同时分页的时候不能有重复

回复内容:

有五类商品a b c d e 当用户点击全部时这五类商品能无序排列,同时分页的时候不能有重复

取得结果后,将数组内容打乱即可

取的结果后,设计一定的策略,将这五类商品随机排列应该就可以了

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