Reputation: 4944
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>';
Upvotes: 0
Views: 387
Reputation: 13804
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.
Upvotes: 0
Reputation: 40533
Use CSS - what you are probably doing belongs into the presentation layer.
Upvotes: 3
Reputation: 39879
Example:
echo '<td class="sitename5">Submissions: '.$row1["countSubmissions"].'</td>';
Upvotes: 4