Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有一种简单的方法,最好是单行,来内爆数组范围。
例子:
array(1,4,6,88,51,3,5,48,59,4);
另外,我怎么能只在第一个和第三个值之间内爆?
implode(',', $range); implode(',', array_slice($range, 0, 3));