I am told that somebody here might be able to offer some advice on an problem I have with some GD Library code.
I have some php code that generates two names, which I then reference in the gd script to output the two names onto an image.
The problem is that there is a line break magically appearing after the first name.
The code for the names is this:
$name = "$first_array[$arnd] $second_array[$nrnd]";
I then insert these into the gd library code as this:
imagettftext ($im, 20, 0, 150, 150, $color, $font, $name);
From experiments, it seems to be something to do with the [$arnd] part immediately following the $first_array which is causing the line break.
Is there any way to force the text onto one single line, or another way to get around the problem?