title: PHP Heredoc won't display variables in HTML - WordPress
body: <p>I have written some functions in my functions.php in my theme. I have:</p>
  
  <pre><code>$usrProfileHTML = &lt;&lt;&lt;EOD
  &lt;div class="eUserProfile"&gt;
      &lt;div class="eUsrImage"&gt;
          &lt;img src="{$envUserProfile['eUsrImage']}" alt="{$envUserProfile['eUserName']}"/&gt;
      &lt;/div&gt;
      &lt;div class="eProfileData"&gt;
          &lt;div class="eUsrUsername"&gt;
              {$envUserProfile['eUsrUsername']}
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  EOD;
  
  
  $fUserData = false;
  $fUserPurchases = false;
  $envatoChecked = false;
  $envUserProfile = false;
  
  add_shortcode( 'envato_mn', 'support_envato_shortcode_953225hfdjs' );
  function support_envato_shortcode_953225hfdjs() {
      global $envUserProfile;
      global $fullEnvatoUser;
      global $envatoButton;
      global $usrProfileHTML;
  
      if($fullEnvatoUser == true) {
          #die(print_r($envUserProfile));
          return $usrProfileHTML;
      } else {
          return $envatoButton;
      }
  }
  </code></pre>
  
  <p>and my variables aren't shown at all, nor do they echo values. What could be the issue?</p>