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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.