How to create .php files using php?

It’s easy to create a file having php extension in php .Simply write a file with php extension as others mentioned.

But I would rather write an ini file for configuration data and load them later with parse_ini_file.

Update: Here is an example to do that: