Writing into buffers in PHP -


i come node.js , things like:

buf.writeuint16le(data, offset); 

now need similar in php. have:

protected $tmpl = '06007007010001004b4'; $bytes = unpack('c*', $this->tmpl); 

but pack function doesn't seem have offset argument. alternatives?


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -