function - PHP: Split string into chunks of 8, how do I do this? -


I basically have a binary, say that it's 300 in length, how do I split (using a lot of explosions) Will divide into 8-bit chunks? I look at chunk_split () but it considers only an 'end' parameter, it is not an option to put it in an array .. or can it socket in the array?

The last 8 digits can be below 8 (if someone has a miscopy, and this is 4) then no verification is required, just properly 8 numbers in chunks from beginning to end.

class = "post-text" itemprop = "text">

:

  $ chunks = str_split ($ data, 8) ;  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -