redcore Posted November 19, 2007 Share Posted November 19, 2007 Now first off, I AM aware that the largest number that can be converted with dechex is "4294967295" - and the number I need to convert IS indeed larger than that...but I need to get this number converted, so I'm interested in hearing ideas on a workaround. As it is now: $Value = "207375434645"; echo dechex($Value); Result: 488a0395 (wrong) Proper result: 30488a0395 (right) Any/all ideas are welcomed! Quote Link to comment Share on other sites More sharing options...
Barand Posted November 19, 2007 Share Posted November 19, 2007 <?php $Value = "207375434645"; echo base_convert($Value, 10, 16); ?> Quote Link to comment Share on other sites More sharing options...
redcore Posted November 20, 2007 Author Share Posted November 20, 2007 bah, you rock sir! thank you very much, most appreciated Quote Link to comment 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.