\n";
foreach($data as $text){ printData($text); }
echo "\n";
}
//以下、関数
//TOP表示
function printContents($top){
mb_convert_variables("EUC-JP", "SJIS", $top);
list($name, $male, $data, $contents, $title) = explode("<>", $top);
echo "$title
$contents
\n";
}
//RES表示
function printData($text){
mb_convert_variables("EUC-JP", "SJIS", $text);
list($name, $male, $data, $res) = explode("<>", $text);
$name = $male ? "$name" : $name;
echo "$name
$res
\n";
}
//ERROR表示
function error($text){
echo $text;
exit;
}
?>