title: Converting csgo_items.txt to array to show in table
body: <p>I would like to parse the following text in PHP and show it in a table, since I need to lookup IDs often and I do not like to search through a file often.
  It looks like this</p>
  
  <pre><code>"1"
  {
      "name"      "weapon_deagle"
      "prefab"        "weapon_deagle_prefab"
      "item_quality"      "normal"
      "baseitem"      "1"
      "default_slot_item"     "1"
      "item_sub_position"     "secondary4"
  }
  "2"
  {
      "name"      "weapon_elite"
      "prefab"        "weapon_elite_prefab"
      "item_quality"      "normal"
      "baseitem"      "1"
      "default_slot_item"     "1"
      "item_sub_position"     "secondary1"
  }
  </code></pre>
  
  <p>I tried to parse these with explode and "}" as delimiter, but it always gives me weird results.
  I heard of doing this with RegEx, but I am not sure about that.</p>
  
  <p>My tries:</p>
  
  <pre><code>$items = file_get_contents('items.txt');
  $arr = explode("}", $items);
  </code></pre>
  
  <p>Is the text maybe already some format I could parse? Or is it a custom one?</p>