EOD; $TabTempl =<<
$ImgPatt $ImgPatt $ImgPatt
$ImgPatt $ImgPatt $ImgPatt
$ImgPatt $ImgPatt $ImgPatt
EOD; function PattTable($Level){ global $Sizes; $SZ = $Sizes[$Level+1]; $ImgPatt =<< EOD; if( $Level<0 ) return $ImgPatt; $ImgPatt = PattTable($Level-1); $SZ = $Sizes[$Level]; $ImgPatt0 =<< EOD; // $TabTempl =<<
$ImgPatt
$ImgPatt$ImgPatt$ImgPatt
$ImgPatt
EOD; return $TabTempl; } echo PattTable($Level=3); ?>