是否可以使用PHP的inline注释.ini文件? [英] Is it possible to use inline comments for .ini files with PHP?

查看:117
本文介绍了是否可以使用PHP的inline注释.ini文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用PHP的.ini文件的内联注释是可能和安全的吗?

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?

推荐答案

p> INI格式使用分号作为注释字符。它在文件中的任何位置接受它们。

INI format uses semicolon as a comment character. It accepts them anywhere in the file.

key1=value
; this is a comment
key2=value ; this is a comment too

这篇关于是否可以使用PHP的inline注释.ini文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆