function fp_number_pad

6.x fp_number_pad($number, $len)
7.x fp_number_pad($number, $len)
4.x fp_number_pad($number, $len)
5.x fp_number_pad($number, $len)

Simple function to left padd numbers with 0's. 1 becomes 001 20 becomes 020 and so on.


int $number:

int $n:

Return value


1 call to fp_number_pad()
get_modules_menus in includes/
Similar to get_modules_permissions, this will scan through all installed modules' hook_menu() functions, and assemble an array which is sorted by "location" and then by "weight".


includes/, line 2977
This file contains misc functions for FlightPath


function fp_number_pad($number, $len) {
  return str_pad((int) $number, $len, "0", STR_PAD_LEFT);