php str_pad not working code example Example: php str_pad not working str_pad($myString, 9, '0', STR_PAD_LEFT); // "000024896"