title: How to return all values of an array
body: <p>I am trying to return all the values of array but this code is acting as as a <code>die</code> statement..so what's the error in this code?</p>
  
  <pre><code>&lt;?php 
  
  $search_array = array("first"=&gt; "first_user", 'second' =&gt; 4_user);
  foreach($search_array as $key =&gt; $value ) 
  {
      if(array_key_exists($key, $search_array))    
      {
          return $search_array[$key]; 
      } 
      else
      {       
          echo "not found"; 
      } 
  }
  
  ?&gt;
  </code></pre>