jmurch Posted October 16, 2012 Share Posted October 16, 2012 I'm rying to find a PHP function that will split a binary file to an fixed length chunk into an array other than just using the linux 'split' functionality. 'explode' would work but I need a fixed length chunk not using a delimeter. TIA, Jeff Quote Link to comment https://forums.phpfreaks.com/topic/269535-split-binary-file-to-array/ Share on other sites More sharing options...
PFMaBiSmAd Posted October 16, 2012 Share Posted October 16, 2012 array_chunk Quote Link to comment https://forums.phpfreaks.com/topic/269535-split-binary-file-to-array/#findComment-1385538 Share on other sites More sharing options...
ManiacDan Posted October 16, 2012 Share Posted October 16, 2012 (edited) The function to split a string into chunks is called chunk_split Edited October 16, 2012 by ManiacDan Quote Link to comment https://forums.phpfreaks.com/topic/269535-split-binary-file-to-array/#findComment-1385539 Share on other sites More sharing options...
jmurch Posted October 16, 2012 Author Share Posted October 16, 2012 Thanks guys......................!!!! Quote Link to comment https://forums.phpfreaks.com/topic/269535-split-binary-file-to-array/#findComment-1385546 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.