title: PHP concatenate variable
body: <p>Might be an easy question for you guys. can't find it on google.</p>
  
  <p>I am trying to concatenate two variables name;</p>
  
  <pre><code>$i=0;
   for ($i=0;$i&lt;5;$i++){
     if($array[$i]&gt;0){
  
     $test.$i=//do something
     }else{
    $test.$i=//do something
    }
  }
  
  //echo $test0 gives me nothing.
  //echo $test1 gives me nothing.
  </code></pre>
  
  <p>I know I can't use $test.$i but don't know how to do this.Any helps? Thanks!</p>