etrader Posted October 8, 2011 Share Posted October 8, 2011 Is there something like str_pad to make a string with a fixed width on the bases of bytes (not characters). If not, is it possible to safely convert characters to bytes to have a fixed width (of bytes). As a matter of fact, I want to use the strings (to be written to a file) as offsets for reading lines with fseek. Thanks Link to comment https://forums.phpfreaks.com/topic/248690-how-to-use-str_pad-for-bytes/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.