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" 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 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! 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
Archived
This topic is now archived and is closed to further replies.