title: How to concatenate a constant similar to concatenation of strings?
body: <pre><code>define('HOUSEHOLD_CHILD1','custom_16');
  define('HOUSEHOLD_CHILD2','custom_14');
  define('HOUSEHOLD_CHILD3','custom_13');
  define('HOUSEHOLD_CHILD4','custom_12');
  
  
  function household_function() {
  
  $vari = array();
  $var['household'][HOUSEHOLD_CHILD1] = $_SESSION['household_membership'][1];
  $var['household'][HOUSEHOLD_CHILD2] = $_SESSION['household_membership'][2];
  $var['household'][HOUSEHOLD_CHILD3] = $_SESSION['household_membership'][3];
  
  
  }
  </code></pre>
  
  <p>I want to implement the above code in foreach loop
  like something similar to concatenate.</p>
  
  <p>it should be something similar to this</p>
  
  <pre><code>foreach($_SESSION['household'] as $key =&gt; $value) {
  $var['household'][HOUSEHOLD_CHILDi] = [i];//i need to concatenate the constant
  //to something similar we do for string
  }
  </code></pre>