title: php - insert a variable in an echo string
body: <pre><code>$i = 1
  echo '
  &lt;p class="paragraph$i"&gt;
  &lt;/p&gt;
  '
  ++i
  </code></pre>
  
  <p>Trying to insert a variable into an echoed string. The above code doesn't work. How do I iterate a php variable into an echo string?</p>