title: Assign Wordpress Short code to PHP Variable?
body: <p>I'm trying to compare a email address held in a PHP variable with a email address held in a short code in Wordpress, this is what I've tried so far:</p>
  
  <pre><code>$email = 'someone@something.com';
  $user_email = do_shortcode('[userinfo field="user_email"]');
  echo var_dump(strcmp($user_email, $email) === 0);
  </code></pre>
  
  <p>But the <code>var_dump</code> always returns <code>false</code>, I'm positive they are the exact same string!</p>