DEV Community

John Ellee Robado
John Ellee Robado

Posted on

2

Table Head using foreach loop in PHP

HTML


ID Number
Name
Birthday
Address
Course

PHP
<?php

$info = "ID Number, Name, Birthday, Address, Course";
$data = explode(',', $info);
foreach ($data as $row) {
echo "

".$row."";
}
?>

In PHP, the lines of code of HTML will reduce down

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more