title: Convert the .txt file content into multidimensional array using it's current format
body: <p>I have a text file with this format and I want to convert this into an array following the format.</p>
  
  <p>Text File Content:</p>
  
  <pre><code>Header = "This is header"
  Object class = "First"
  
  min_size = 0 
  max_size = 727.555 
  content= true 
  size = 1 
  item []: 
      item [1]:
          class = "Convert" 
          name = "CONTENT" 
          min_size = 0 
          max_size = 727.555 
          intervals: size = 474 
          intervals [1]:
              min_size = 0 
              max_size = 13.139997023062838 
              type = "" 
          intervals [2]:
              min_size = 13.139997023062838 
              max_size = 14.763036269953904 
              type = "this is a type" 
          intervals [3]:
              min_size = 14.763036269953904 
              max_size = 17.01 
              type = "" 
          intervals [4]:
              min_size = 17.01 
              max_size = 18.193 
              type = "" 
  </code></pre>
  
  <p>I want to convert this to an array something like this if possible:</p>
  
  <pre><code>Array
  (
      [1] =&gt; 
          Array(
                  ['min_size'] = 0,
                  ['max_size'] = 13.139997023062838,
                  ['type'] = ""
              )
      [2] =&gt; 
          Array(
                  ['min_size'] = 13.139997023062838,
                  ['max_size'] = 14.763036269953904,
                  ['type'] = "this is a type"
              )
  </code></pre>
  
  <p>I already tried something like this:</p>
  
  <pre><code>$file = "array.txt";// Your Temp Uploaded file
  $cols = array();
  ini_set('auto_detect_line_endings', true);
  
  $fh = fopen($file, 'r');
  $i = 0;
  
  while (($line = fgetcsv($fh, 1000, "\t")) !== false) {
    $cols[] = $line;
  
    }
  
  echo "&lt;pre&gt;";
  print_r($cols); 
  echo "&lt;/pre&gt;";
  </code></pre>
  
  <p>But this only turned everything into a single array.</p>
  
  <p>Is this possible?</p>
  
  <p>I already looked into this: <a href="https://stackoverflow.com/questions/19452541/php-tab-delimited-text-file-into-array">one</a> <a href="https://stackoverflow.com/questions/13689227/upload-tab-delimited-txt-file-using-form-then-make-into-php-arrays">two</a> <a href="https://stackoverflow.com/questions/6159683/read-each-line-of-txt-file-to-new-array-element">three</a></p>