title: How to create empty string using for loop PHP
body: <p>I'm trying to create for loop giving strings empty value. How I can do it?</p>
  
  <pre><code>for ($i = 1; $i &lt;= 24; $i++) {
  
      $b2_ch_v = ${'b2_g_v_'.$i}['id'];
      $$b2_ch_v = '';
  
  }
  
  /*
  result should be:
  $b2_g_v_1['id'] = '';
  $b2_g_v_2['id'] = '';
  [...]
  $b2_g_v_24['id'] = '';
  */
  </code></pre>