title: I want to capitalize the value of the php string in this echo block
body: <p>Here is my block of php I want to capitalize the first letter in the value the string returns from <code>$user-&gt;data['username_clean']</code></p>
  
  <p>The method I tried didn't work with this error.</p>
  
  <blockquote>
    <p>Fatal error: Call to undefined method</p>
  </blockquote>
  
  <p>It is likely however that I formatted it incorrectly.  php code is here.</p>
  
  <pre><code>&lt;?php 
  if ($user-&gt;data['user_id'] == ANONYMOUS) {
     echo '
          &lt;li class="dropdown"&gt;
             &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"&gt;Login&lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;
             &lt;ul class="dropdown-menu"&gt;
                &lt;form id="loginform" method="post" action="/forums/ucp.php?mode=login"&gt;
                   &lt;label&gt;Username&lt;/label&gt;
                   &lt;input name="username" type="text" id="username" class="width120 textbox" tabindex="1" /&gt;
                   &lt;label&gt;Password&lt;/label&gt;
                   &lt;input name="password" type="password" id="password" class="width120 textbox" tabindex="2" /&gt;
                    &lt;label&gt;Remember Me?:&lt;/label&gt;
                    &lt;input type="checkbox" name="autologin"&gt;
                    &lt;input type="submit" value="Login" name="login"&gt;
                    &lt;input type="hidden" name="redirect" value="indextest.php"
                &lt;/form&gt;
          &lt;/li&gt;';
  } else { 
      echo '
          &lt;li class=dropdown&gt;
          &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"  aria-haspopup="true" aria-expanded="false"&gt;',  $user-&gt;data['username_clean'], '&lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;
          &lt;ul class="dropdown-menu"&gt;
                      &lt;li&gt;&lt;a href="#"&gt;User Control Panel&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="#"&gt;Profile&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="#"&gt;Logout&lt;/a&gt;&lt;/li&gt;
                    &lt;/ul&gt;
          &lt;/li&gt;';
  }
  ?&gt;
  </code></pre>