String format best practice
| From: | René Fournier | Date: | Tue, 29 Mar 2005 21:27:56 +0000 |
| Subject: | String format best practice | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-211814@lists.php.net to get a copy of this message | ||
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