- parse_ini_file: documentation ( source)
- print_r: documentation ( source)
- file_put_contents: documentation ( source)
<?php
$file = '/tmp/FOO2AsD16';
file_put_contents($file, '
foo=bar
#hashcomment =nothing
;realcomment=nowt
baz=quux
');
print_r( parse_ini_file($file) );