Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は基本的にバイナリを持っています、それは長さが300だと言います。(explodeを使用するのと同じように)どのように8ビットチャンクに分割しますか?私はchunk_split()を見ましたが、それは'end'パラメーターしかなく、配列に入れるオプションはないようです。または、配列にソケットすることはできますか?
末尾の8桁は8未満である可能性があるため(誰かからのミスコピーの場合、それは4です)、検証は必要ありません。最初から最後まで一貫して8つの数字のチャンクになります。
str_split:
str_split
$chunks = str_split($data, 8);