PHP Code:
function servicenumber($userstring)
{
if ($userid < 10) {
$userstring = "000" . $userid;
}
if ($userid < 100) {
$userstring = "00" . $userid;
}
if ($userid < 1000) {
$userstring = "0" . $userid;
}
Would this be right? If it is, I would be good just putting this in the functions.php file right?
Brain dead at the moment apparently, doesn't help I haven't done anything dealing with php in years. lol