How to add character to content of post? October 13, 2022 by Tarik Billa Take a look at the php sprintf and printf functions. $x = 12345678; printf('%010d', $x);