$Sizes = array( 1, 7, 25, 79, 241 );
$Sizes = array( 2, 10, 34, 106, 322 );
$Sizes = array( 3, 13, 43, 133, 403 );
srand ((float) microtime() * 10000000);
$SZa = array_rand($Sizes, 1);
$SZ = $Sizes[$SZa];
// echo $SZ;
$ImgPatt =<<
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);
?> |