> Hi I am trying to track down a method for transferring a database id
> such as 5 into a nice formatted order id such as ORD0005 - where the
> format for the order id is "ORD" + 5 digits made up of the database id
See documentation for sprintf().
Try something like:
$formatted = sprintf('ORD%05d', $id);
---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca http://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php