title: PHP - Parse ini file and access single values
body: <p>In Python you can parse an <code>.ini</code> file and access the single values like this:</p>
  
  <p><strong>myini.ini</strong></p>
  
  <pre><code>[STRINGS]
  mystring = fooooo
  value = foo_bar
  </code></pre>
  
  <p><strong>script.py</strong></p>
  
  <pre><code>import configparser
  config = configparser.ConfigParser()
  # ----------------------------------------------------------------------
  
  config.read("myini.ini")
  
  test = config["STRINGS"]["mystring"]
  print (test)      #-&gt; OUTPUT: fooooo
  </code></pre>
  
  <p>How can I do the same in PHP? Unfortunately, I was not able to find any examples.</p>