dot after each character php

PHP
$formatted = trim( chunk_split($password, 1, ' ') );
Source

Also in PHP: