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

c# - ItextSharp font color issue in ver 5.5.4+ -

jquery - Multiple issues with pushstate: history, loading, calling functions -

ios - retrievePeripherals deprecated in IOS7 how to substitude it with retrievePeripheralsWithIdentifiers -