loop

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bharathv
Forum Newbie
Posts: 4
Joined: Wed Mar 25, 2009 2:12 am

loop

Post by bharathv »

Hello guys
i wanted the code to send a chunk of data to the function.
i.e. i have a data set $data[0-1263][0-3] and i want to divide this in to chunks of 50 and send it
i.e. $chunk1[0-50][0-3]
$chunk2[51-100][0-3]



thank u in advance
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: loop

Post by requinix »

Try the array_chunk function.
Post Reply