• In per posts, there are “oo/x/”.

    How to add “0” before “x” if length(x) < 10 ?

    Example:

    x=12345678 ; length(x) = 8, so add “00” before x ===> x=0012345678

    x=1234567 ; length(x) = 7, so add “000” before x ===> x=0001234567

    x=123456789 ; length(x) = 9, so add “0” before x ===> x=0123456789

    Do you understand ? Sorry for my poor English ! Thank you very much !

Viewing 1 replies (of 1 total)
  • how does the number get generated?
    is the number part of the ‘normal’ post content, i.e. manually entered into the eeditor, or done by a plugin or shortcode or any other function?

Viewing 1 replies (of 1 total)
  • The topic ‘How to add characer to content of post?’ is closed to new replies.