title: PHP define a function output as variable
body: <p>Say I have a function that brings a title across, for example:</p>
  
  <p><code>get_title();</code> which outputs "title".</p>
  
  <p>I want to set this as a variable such as <code>$title = get_title();</code></p>
  
  <p>Unfortunately this just echo's out the function and doesn't catch it for the variable. How should I be doing this?</p>
  
  <p>I want to use the variable for an if statement.</p>
  
  <p><code>if ($title == "no title") { stop }</code></p>