create ini file, write values in PHP
问题 I cannot find a way that easily lets me create a new file, treat it as an ini file (not php.ini or simiilar... a separate ini file for per user), and create/delete values using PHP. PHP seems to offer no easy way to create an ini file and read/write/delete values. So far, it\'s all just \"read\" - nothing about creating entries or manipulating keys/values. 回答1: Found following code snippet from the comments of the PHP documentation: function write_ini_file($assoc_arr, $path, $has_sections