I have an array of strings in a PHP script. Array has 10 keys. I wish to display contents of each array entry in html format by using embedded html.
Question: how to output a PHP array variable contents so that it can be styled by the applicable CSS styling sheet for the webpage?
I considered:
<code>
<?php if (condition): ?>
<p> Message to be displayed in html format since paragraph display governed by associated CSS file. </p>
<?php end-condition; ?>
</code>
So how to get the paragraph contents to be the output of the PHP array variable?
Thanks.