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:
0 comments:
Post a Comment