I'm currently trying to put two variables together, one that has already a specific number automatically calculated by imagesy and the second variable is returning data from url with $_GET['l2_y']
imagettfstroketext($jpg_image, 0, $y . $options['text']['font-position']['l2_y'] );
The $y returns '29'
and the $options['text']['font-position']['l2_y'] returns +150 (or whatever I set in the header)
I am trying to combine the two but it's not working at all, if I remove the $y . then the +150 works but if I add the . it doesn't calculate everything..
I've been stuck at this for a while now, I'm not sure how to combine the two, the reason I am using + signs in get is because it can also be used as a -150 to change the position of the text.
intval($y) + intval($options['text']['font-position']['l2_y'])to coerce both to numbers (they might be strings now) and then simply use mathematics (and not the.concatenation)?