Setting a variable as a function call to use in an if statement within PHP
<p>Ok, so am doing some Wordpress edits, and I writ a if statement.</p>

<pre><code>&lt;?php $title = the_title();
if ($title != 'Designer'){ ?&gt;
&lt;body&gt;
&lt;?php }else{ ?&gt;
&lt;body class="noresponce"&gt;
&lt;?php } ?&gt;
</code></pre>

<p>As you can see though, this uses a function call as a variable. This is because the function call will call the name of the current page. This is good. </p>

<p>However it also tends to echo the title on page as well when I do this, which makes sense. I may be trying to do something that isn't correct. Can anyone tell me if its possible though?</p>

<p>Basically I want to use the function call in an if statement without it being echoed on page. </p>
