title: Read complicated structure from text file and place in database
body: <p>I have the following structure in a text file:</p>
  
  <pre><code>class Thing1
  {
      pos[]={120.03,121,134.0987};
      heading=-92.049;
      anotherthing=19;
      foo="thing";
      kind="This_item";
      foo=0.293333;
      foo="this thing";
  };
  class Thing2
  {
   ...
  }
  </code></pre>
  
  <p>I would like to read the structure on my website with a PHP document and place it in the database. I need to have the 'pos[]', 'heading' and 'kind' values and need to add them to a row. So how can I get these values and make them into a variable so I can use them?</p>
  
  <p>Thanks.</p>