I want to change an echo (from PHP) to a <p> tag, so that I can use CSS in my text.
Advertisement
Answer
You can just add the string literal <p> between the variable:
echo '<p>' . $my_var . '</p>';
I want to change an echo (from PHP) to a <p> tag, so that I can use CSS in my text.
You can just add the string literal <p> between the variable:
echo '<p>' . $my_var . '</p>';