You are here: String format best practice « PHP « IT news, forums, messages
String format best practice

Posted by Ren� Fournier on 03/30/05 00:27

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация