INI

The INI format is a simple, human-readable file format used for configuration settings. It consists of key-value pairs grouped into sections.

It is natively supported by PHP, and used internally for the php.ini file.

It is related to the TOML format.

<?php

    parse_ini_file('/path/to/php.ini');

    parse_ini_string(<<<INI
    ; This is a comment
    # Another comment

    [database]
    host = localhost
    username = root
    password = secret
    port = 3306
    INI);

?>

Documentation

See also INI configuration.

Related : Format, JavaScript Object Notation (JSON), Tom’s Obvious Minimal Language (TOML)

Related packages : matomo/ini