On Friday 13 August 2004 01:00, Matthew Oatham wrote:
> 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

str_pad(), please RTFM before you ask such questions. It's obvious from your 
subject that you know it's something to do with strings, so where better than 
to look at the chapter on String Functions? Browse through them, checkout the 
examples, it's a good way to learn.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Ginsburg's Law:
        At the precise moment you take off your shoe in a shoe store, your
        big toe will pop out of your sock to see what's going on.
*/

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

Reply via email to