<?php $length = 4; $string = "AB"; $string = substr_replace($string,"",$length); $string = str_pad($string,$length,"-",STR_PAD_RIGHT); echo $string;
You have javascript disabled. You will not be able to edit any code.