You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: docs/book/reader.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,17 @@ function. Please review this documentation to be aware of its specific behaviors
42
42
> $reader->setNestSeparator('-');
43
43
> ```
44
44
45
+
> ### Process Sections
46
+
>
47
+
> By default, the INI reader executes `parse_ini_file()` with the optional parameter `$process_sections` being `true`. The result is a multidimensional array, with the section names and settings included.
48
+
>
49
+
> To merge sections, set the parameter via `setProcessSections()` to `false` as follows.
50
+
>
51
+
> ```php
52
+
> $reader = new Zend\Config\Reader\Ini();
53
+
> $reader->setProcessSections(false);
54
+
> ```
55
+
45
56
The following example illustrates basic usage of `Zend\Config\Reader\Ini` for
46
57
loading configuration data from an INI file. In this example, configuration data
47
58
for both a production system and for a staging system exists.
0 commit comments