For reading and writing data into properties file I am using parse_ini_file() function in this post.
Create a file name with extension .properties like I have created below:
Create a file name with extension .properties like I have created below:
Reading Data: below
code read data from above file using key:
function getValue($key)
{
$ini_array
= parse_ini_file("File.properties");
$value
= $ini_array[$key];
return
$value;
}
getValue(“Name”);
getValue(“URL”);