How to display PHP array contents in hmtl format? |
How to display PHP array contents in hmtl format? |
Forca |
May 22 2017, 12:01 AM
Post
#1
|
Member Group: Members Posts: 33 Joined: 29-April 16 Member No.: 24,203 |
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. |
Lo-Fi Version | Time is now: 24th April 2024 - 11:26 PM |