i would guess this would work....
$imarr[] = 'file1.jpg'; //just building a test array
$imarr[] = 'file2.jpg';
$imarr[] = 'file3.jpg';
$newimg = imagecreate(600,$height); //init new image 600w by whatever height
for($i=0;$i<sizeof($imarr);$i++)
{
$oldimg = imagecreatefromjpeg($imgarr[$i]);
imagecopy($newimg, $oldimg, 200*$i, 0, 200, $height); //copy image X onto new image at 200 x imagecount ie. 0, 200, or 400, + width of 200 for each
}
imagejpeg($newimg); //output to browser