WIDTH
DEPTH
$out = "WIDTH=8;\nDEPTH=256;\nADDRESS_RADIX=HEX;\nDATA_RADIX=HEX;\nCONTENT BEGIN\n"; for ($i = 0; $i < 256; $i++) $out .= sprintf(" %02X: %02X;\n", $i, $data[$i]); $out .= "END;\n";