We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ca43c4 commit de84a3dCopy full SHA for de84a3d
examples/php-server/ini/index.php
@@ -1,8 +1,24 @@
1
-<?php
+<h1>php.ini</h1>
2
3
+<table>
4
+<thead>
5
+ <tr>
6
+ <th>option</th>
7
+ <th>global_value</th>
8
+ <th>local_value</th>
9
+ <th>access</th>
10
+ </tr>
11
+</thead>
12
+<tbody>
13
+<?php
14
foreach (ini_get_all() as $name => $group) {
- echo "<h1>$name</h1>";
- foreach ($group as $k => $v) {
- echo "$k => $v<br>";
- }
15
+ echo "<tr>";
16
+ echo sprintf('<td>%s</td>', $name);
17
+ echo sprintf('<td>%s</td>', $group['global_value']);
18
+ echo sprintf('<td>%s</td>', $group['local_value']);
19
+ echo sprintf('<td>%s</td>', $group['access']);
20
+ echo "</tr>";
21
}
22
+?>
23
+</tbody>
24
+</table>
0 commit comments