title: PHP echo return value of function
body: <p>I have this function:</p>
  
  <pre><code>public function checkbrowser() {
  $useragent = $_SERVER ['HTTP_USER_AGENT'];
  return $useragent;
  }
  </code></pre>
  
  <p>You see it returns the value of <code>$useragent</code>. I want to be able to echo what the function returns.</p>
  
  <p>There are no answers on Google or StackOverflow, because everyone says </p>
  
  <blockquote>
    <p>why not just echo it inside the function?</p>
  </blockquote>
  
  <p>I don't want that, I really want to be able to echo what the function returns.</p>
  
  <p>My most important question: <strong>is it possible</strong>?</p>
  
  <p>And if yes, how?</p>