title: Can I read and write key/values from ini files in PHP just like we do with .properties files in Java?
body: <pre><code>    Properties prop = new Properties();
      prop.load(new FileInputStream("my.properties"));
      prop.setProperty("name", "my name");
      prop.getProperty("name");
  </code></pre>
  
  <p>This looks so simple to set and get properties in Java. I searched for same thing in PHP, but didn't find anything useful related to this.</p>
  
  <p>I've read somewhere that </p>
  
  <blockquote>
    <p>PHP can natively load and parse .ini files using <code>parse_ini_file()</code>.</p>
  </blockquote>
  
  <p>As I just have started learning PHP, I can't find any code that can read write key/value pairs from .ini files in a way as simple as we do in Java with .properties files. How might I do this?</p>