WordPress Hosting
Free Photos
WordPress Themes

Leading zero

function lzero( $value, $places ) { return sprintf( '%0' . $places . 'd', $value ); }
Add leading zero's to a value

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.