String format best practice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I need to output a Hex value, e.g.:

686E8AF8

In the following format:

68 6E 8A F8

In other words, separated by spaces. Now I realize there are a million ways to do this, but I would like a suggestion on which you think is the most efficient? Incidentally, I'm starting with a decimal value (23602210718), so maybe sprintf would be a direct way?

...Rene



Best regards,
René Fournier

---
René Fournier
GPS Police.NET
31, 1339 - 40th Ave NE
Calgary, AB  T2E 8N6
Canada

Tel +1 (403) 250.1111
Fax +1 (403) 291-2997
www.gpspolice.net

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux