oni-kun Posted December 10, 2009 Share Posted December 10, 2009 There's no hex2bin function so I wrote one myself, It's correct but in the conversion it appends 'b000000' when going back into hex. I saw this is normal, but how do I remove it IF it exists? A normal result would be "732b4a4d5528c948552828ca2ccecf4b2d2a06000b000000" Quote Link to comment https://forums.phpfreaks.com/topic/184608-remove-part-of-a-string/ Share on other sites More sharing options...
vinpkl Posted December 10, 2009 Share Posted December 10, 2009 http://php.net/manual/en/function.str-replace.php Quote Link to comment https://forums.phpfreaks.com/topic/184608-remove-part-of-a-string/#findComment-974581 Share on other sites More sharing options...
oni-kun Posted December 10, 2009 Author Share Posted December 10, 2009 http://php.net/manual/en/function.str-replace.php NEver thought of something so simple, thanks for making me do the work myself! Quote Link to comment https://forums.phpfreaks.com/topic/184608-remove-part-of-a-string/#findComment-974582 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.