$block) { $text .= "[$disk]\n"; foreach ($block as $key => $value) $text .= "$key=\"$value\"\n"; } file_put_contents($file,$text); ?>