PHP: Empty/Null and if logic inquiry
<p>I have an input box that with php will echo out names typed in. The problem is that when the user presses space it will echo out the blank character. I have searched and didnt find an absolute answer. I know that using <code>!empty</code> if there is absoutely anthing in the input field but if there is a space is null supposed to work. </p>

<p>How to avoid getting echo if there is blank space in input?</p>

<pre><code>if (!empty($name['name']) || null ) {
    echo 'Your name is '.$name;

}
{

//do nothing 

}
</code></pre>
