<?php

$password="1bsdf4";
echo chunk_split($password, 1, ' ');