Is it possible and safe to use inline comments for .ini files with PHP?
I prefer a system where the comments are inline with the variables, coming after them.
Are the some gotchas concerning the syntax to be used?
Is it possible and safe to use inline comments for .ini files with PHP?
I prefer a system where the comments are inline with the variables, coming after them.
Are the some gotchas concerning the syntax to be used?
INI format uses semicolon as a comment character. It accepts them anywhere in the file.
If you're talking about the built-in INI file parsing function, semicolon is the comment character it expects, and I believe it accepts them inline.
Outputs: