title: Can not use $php_errormsg on xampp server
body: <p>Whenever I am trying to use <code>$php_errormsg</code> to output errors, it says</p>
  
  <blockquote>
    <p>Undefined variable:php_errormsg in ......</p>
  </blockquote>
  
  <p>I have already set <code>track_errors=on</code> in php.ini
  file.
  I guess the error should be generated in function call and php_errormsg should contain it.
  What may be the possible causes and solution ? </p>
  
  <pre><code>function fun($x,$y){
     echo "function called";
  }
  @fun(3);
  echo $php_errormsg;
  </code></pre>