Echoing Spaces Between a Hard-Coded Word and a Variable
For the code below, how could I put 5 spaces between "Submissions:" and $row1["countSubmissions"]
?
Thanks in advance,
John
开发者_如何学编程echo '<td class="sitename5">Submissions: '.$row1["countSubmissions"].'</td>';
Example:
echo '<td class="sitename5">Submissions: '.$row1["countSubmissions"].'</td>';
Use CSS - what you are probably doing belongs into the presentation layer.
Look at the PHP function str_repeat
You might also consider the CSS property word-spacing
, which may be a better way to accomplish what you seem to be attempting.
精彩评论