Raisch
extraordinary bit
Ungetestet:
PHP:
$number1 = '1000'; // Wird eigentlich ausgerechnet
$img_repeat = imagecreatefrompng( $pfad1 );
$img_size1 = imagesx( $pfad1 );
$img_size2 += $img_size1 * $number1;
$fillImg = array( 'avapic' => $img_repeat, 'sizex' => $img_size1 );
$img_end = array_merge( $img_end, array_fill( 0, $number1, &$fillImg ) );