title: Transform string with term enclosed in quotes and separated by commas into array of subarrays in PHP
body: <p>I have a Mysql database with one field that contains a string of terms in quotes separated by commas, I need to turn that field into an array or arrays and add to each term some information that will be updated in the future, as the example below.</p>
  <p>field value: &quot;Individuals, groups and populations&quot;,&quot;Diversity and inclusion&quot;,&quot;Protection&quot;</p>
  <p>Result it an array or arrays such:</p>
  <p>&quot;Partof&quot;: [
  {
  &quot;term&quot;: &quot;Individuals, groups and populations&quot;,
  &quot;definition&quot;: &quot;&quot;
  },
  {
  &quot;term&quot;: &quot;Diversity and inclusion&quot;,
  &quot;definition&quot;: &quot;&quot;
  },
  {
  &quot;term&quot;: &quot;Protection&quot;,
  &quot;definition&quot;: &quot;&quot;
  }
  ],</p>
  <p>Thank you</p>