How to display string values within a table using PHP ?
A table is an arrangement of data in rows and columns, or possibly in a more complex structure. Tables are widely used in communication, research, and data analysis.
- Tables are useful for various tasks such as presenting text information and numerical data.
- Tables can be used to compare two or more items in the tabular form layout.
- Tables are used to create databases.
<table border=1 cellspacing=1 cellpadding=1> <tr> <td> <font color=green> Geeksforgeeks </font> </td> <td> is best learning platform </td> </tr> <tr> <td> <font color=green> Written by </font> </td> <td> Priyank </td> </tr> </table>
If we run this code on a local server then the output will display in form of a table.