What is parse ini file in PHP Filesystem

In this article I am going to explain about parse_ini_file function in PHP.
  • 1876

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/"
  • After it create parseinifile.php file:

<html>

<body>
 

<?php

print_r(parse_ini_file("initest.ini"));

?>
 

</body>

</html>


Output:

parse-ini-file-php-function.jpg

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

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.