Algorithm to share array data in smaller array (s) in php -


i have array x ( 1,2,3,...700)

i put datas in 5 arrays in order, like

x1 ( 1,2...200) x2 (200...400) . . .x5(...,700)

what fastest way gys?

tx

$xs = array_chunk($x, 200); 

http://php.net/manual/en/function.array-chunk.php


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -