U
U
UnFox2018-02-04 23:40:40
PHP
UnFox, 2018-02-04 23:40:40

How to divide an array into equal or almost equal parts?

We need a function for splitting an array into several, for example, into 3 with the same number of elements (well, or almost)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
artem78, 2018-02-04
@UnFox

array_chunk()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question