Letter spacing in CSS?
Letter spacing in CSS?
Out of context: Reply #7
- Started
- Last post
- 11 Responses
- vaxorcist0
hopefully this isn't mangled....
<?
$string = "Hello there, this is my long string of text, it goes on and on...
and it seems to go on foreer, long enough to type lorem ipsom for a while";
$number_of_chars_per_line=60;$list_of_lines=split('SPLIT',wordwrap($string,$number_of_chars_per_line,"SPLIT"));
for($i=0;$i<sizeof($list_of_lines);$i++){
$line = $list_of_lines[$i];
$all_but_the_last_char = substr($line, 0, -1);
$the_last_char = substr($line, -1, 1);
print "<p class='whatever'>\n";
print "$all_but_the_last_char";
print "<b class='lastchar'>$the_last_char</strong>\n";
print "</p>\n\n";
}
?>