title: PHP text to image, text alignment
body: <p>I am making a little app in php which is putting text to image. I got it wotking with imagettftext. I was also able to put it to a imagettfbbox with specific width using this function <a href="http://php.net/manual/en/function.imagettftext.php#89505" rel="nofollow noreferrer">http://php.net/manual/en/function.imagettftext.php#89505</a>. My only problem is that I want the text to be aligned to the right side of the box like on the image<img src="https://i.stack.imgur.com/g6T0L.png" alt="enter image description here"></p>