Pad a string with zeros using PHP

Recently I had to create a code/username maker to fit into a certain type of pattern so that all “broker codes” (as they were called) followed the same path. An example one looked like so: [code lang=”bash”] HJTH0001 [/code] The number needed to increment and I wanted to use the Read more…

By Andrew Odendaal, ago