I would like to store a string in the following format:
EC/2000/MJC/00002
I am using the code:
$exception = ("EC/".$year."/".$author."/"$num);
This string is then being stored in a database. However, I do not know how to format the $num integer to display leading zeros. I'm sure this must be fairly simple but i can't find any examples anywhere.
thanks.