SyntaxFix
Write A Post
Hire A Developer
Questions
Variable interpolation does not happen in single quotes. You need to use double quotes as:
$i = 1 echo "<p class=\"paragraph$i\"></p>"; ++i;