title: How to print multiple variables values using loop
body: <p>I have multiple array variable in my page and i need to add them to google charts and make between 15 to 20 charts but for more easier i want to use a loop to print them
  All the variables have something in common in there names
  how to use one loop to print all variable</p>
  
  <p>example: I have this variable :</p>
  
  <pre><code>$productshirts = ['red','green'];
  $productpants = ['bleu','yellow'];
  $productdress = ['green','gold'];
  $products = ['shirts','pants','dress'];
  </code></pre>
  
  <p>now i need to  print them in on code using loop foreach </p>
  
  <pre><code>foreach ($products as $product){
  print_r('product'.$product);
  }
  </code></pre>
  
  <p>but it not work. I get "productshurts , productpants , productdress" and not the array </p>
  
  <p>so how to make them return the data in the array???? </p>
  
  <p>Thanks</p>