title: dynamic span class within a php file.
body: <p>not really a php guy, but have a question. I'm wanting to take the following statement</p>
  
  <pre><code>    $_POST['subject'] =  $_POST['post_prefix'] . '  ' . $_POST['subject'];
  </code></pre>
  
  <p>I would like the </p>
  
  <pre><code>$_POST['post_prefix']
  </code></pre>
  
  <p>part to be within a span class so I can add some css styling to it. </p>
  
  <p>So it ends up as something like </p>
  
  <pre><code>&lt;span class="$_POST['post_prefix']"&gt;$_POST['post_prefix']&lt;/span&gt;
  </code></pre>
  
  <p>I tried a few methods on here via search, but phpstorm keeps giving me errors all over the place about semicolons. So thought I'd ask the pros to save my sanity. </p>
  
  <p>If there's a better way of doing this, then that would also be helpful. </p>
  
  <p>Cheers. </p>