I have the following code:
<div class="brm-item-name">204 Banane, Milch & Erdbeeren <button type="button" class="btn btn-info btn-xs" id="pop" data-toggle="modal" data-target="#myModal"></button></div>
"204 Banane, Milch & Erdbeeren "
is pulling from database but text does not have a space in the database. The space here is giving me trouble when writing css. Do you have any suggestions on this?
My Answer:
php
$text = "Text has space to the right__ _";
$trimmedText = rtrim($text);
echo $trimmedText;
Rate this post
4 of 5 based on 3703 votesComments