Unnamed
public php v1 · immutablefunction string_display_length($x){ $x=strip_tags($x); $x=str_replace('&',"x",$x); $x=str_replace('&',"x",$x); $x=str_replace('©',"x",$x); $x=str_replace('©',"x",$x); $x=str_replace('<',"x",$x); $x=str_replace('>',"x",$x); return strlen($x);}function string_fixed_length($w, $string){ $s = string_display_length($string); $space = " "; if($w > $s) { $g = $w - $s; $add = $space * $g; $out = $string.$add; } echo $out;}