title: How to get all values from an array
body: <p>I have an varible that retrive and stores values in an array format. That is </p>
  
  <pre><code>$fold_location = Input::get('location');
  </code></pre>
  
  <p>If we Print this means it look like below:</p>
  
  <pre><code>Array ( [0] =&gt; 1 [1] =&gt; 2 )
  </code></pre>
  
  <p>What i want is to get all values from this variable.</p>
  
  <p>i am trying the following.</p>
  
  <pre><code>    foreach($fold_location as $value) {
                      $fold_location = $value;
                      print_r($fold_location);
      }
  </code></pre>
  
  <p>But it return the output as 1.
   I want to get all the values. How to do that in php -mysql</p>