What is parse ini file in PHP Filesystem
In this article I am going to explain about parse_ini_file function in PHP.
PHP parse_ini_file() Function
The filesystem parse_ini_file function parses a configuration file.
Syntax of parse_ini_file function
parse_ini_file(file, processSelection) |
Parameters in parse_ini_file function
It have two parameter:
Parameter |
Description |
file |
It specifies ini file to check. |
processSelction |
By it, you get multidimensional array. |
Example of filesystem parse_ini_file function
- If you have not any ini file, then first create initest.ini file:
[names]
company=MCN
Owner=ABC
[urls]
one="https://dotnetheaven.com/"
two="http://www.c-sharpcorner.com/" |
<html>
<body>
<?php
print_r(parse_ini_file("initest.ini"));
?>
</body>
</html>
|
Output:

You may also want to read these related articles :here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here