parse_ini_string

(PHP 5 >= 5.3.0, PHP 7)

parse_ini_string���������ַ���

˵��

parse_ini_string ( string $ini [, bool $process_sections = false [, int $scanner_mode = INI_SCANNER_NORMAL ]] ) : array

parse_ini_string() ���� ini �ַ���������Ĺ�������

ini �ַ����ĸ�ʽ�ο� php.ini

����

ini

ini �ַ�������

process_sections

���� process_sections ����Ϊ TRUE,�õ�һ����ά����,�������ƺ����á�process_sections Ĭ��Ϊ FALSE

scanner_mode

������ INI_SCANNER_NORMAL (Ĭ��)�� INI_SCANNER_RAW ������� INI_SCANNER_RAW,��ôѡ��ֵ���ᱻ������

As of PHP 5.6.1 can also be specified as INI_SCANNER_TYPED. In this mode boolean, null and integer types are preserved when possible. String values "true", "on" and "yes" are converted to TRUE. "false", "off", "no" and "none" are considered FALSE. "null" is converted to NULL in typed mode. Also, all numeric strings are converted to integer type if it is possible.

����ֵ

ִ�гɹ�����һ����������,���� FALSE Ϊʧ��

ע��

Note: �����ؼ��ֲ�����Ϊ ini �ļ������� null, yes, no, true, false, on, off, none�Լ���ֵ��off��no �ʹ���Ľ������ֵΪ yes �� ��ȷ�Ľ����������ʹ�� INI_SCANNER_TYPED ģʽ�� �ַ� ?{}|&~![()^" �������κεط�ʹ����Ϊ���������������ֵ��

�μ�