'; // Here we actually create the sandbags foreach ($sandbag as $position => $blankPixels) { $sandbagWidth = $width-$blankPixels; printf($sandbagTemplate,$sandbagWidth,$sandbagHeight); } } // As we've now created a function we need to call that function alignedImage('an_image.png', 14); ?>