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);
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);
Comments
Post a Comment