title: Converts the configuration (text file) into a multidimensional array
body: <p>I have tried many time to convert this config file to multidimensional array, this mean I must be read config.txt file and then I must be convert to multidimensional array. I need help or some suggests.</p>
  
  <p>config.txt:</p>
  
  <pre><code>id=www
  session.timeout=120
  
  session.server.0.host=127.0.0.1
  
  session.server.0.port=1111
  
  session.server.0.id=session1
  
  session.server.1.host=127.0.0.1
  
  session.server.1.port=1111
  
  session.server.1.id=session2
  
  image.width=640 
  
  image.height=480 
  
  image.watermark.small=wsmall.png 
  
  image.watermark.normal=wnormal.png
  </code></pre>