PHP ini Extension File Example


project Structure

sample.ini

[one_user]
username = RamPukar
userpass = Rampukar1

[two_user]
username = Rajesh
userpass = Rajesh1

[three_user]
username = Amit
userpass = Amit1

[four_user]
username = MRD 
userpass = MRD1

[five_user]
username = Niral 
userpass = Niral

---------------------------------------------
index.php

<!DOCTYPE html>
<html>
<head>
<title>PHP .ini Extension</title>
</head>
<body>
<?php 
$parse = parse_ini_file('sample.ini',true);
print '<pre>';
print_r($parse);
 ?>
</body>

</html>
------------------------------------
Output:



Share on Google Plus

About Ram Pukar

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

0 comments:

Post a Comment