setw ( ) is used for fill the blank right is used for right justification of data
$ x = count ( $ result ) ; $ digits = strlen ( ( string ) $ result [ $ x - 1 ] ) ; for ( $ i = 0 ; $ i < $ x ; $ i ++ ) { echo str_pad ( $ result [ $ i ] , ( $ digits + 1 ) , " " , ▁ STR _ PAD _ LEFT ) ▁ . ▁ " " } }