title: How to display function value?
body: <p>I am using this function and declare display_error(),
  but error display on my screen 
  "Warning: Invalid argument supplied for foreach()" 
  help with us.</p>
  
  <pre><code>function display_error($nerrors = '')
          {
              if(isset($nerrors))
              {
              foreach($nerrors as $err)
              {
                  echo $err-&gt;errors['existing_user_login'][0];
  
              }       
  
              }
          }
  </code></pre>