The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> How to display PHP array contents in hmtl format?
post May 22 2017, 12:01 AM
Post #1


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:

<?php if (condition): ?>
<p> Message to be displayed in html format since paragraph display governed by associated CSS file. </p>
<?php end-condition; ?>


So how to get the paragraph contents to be the output of the PHP array variable?


User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


- Lo-Fi Version Time is now: 20th July 2018 - 01:26 PM