I need to create a script with a function that accepts four string variables and returns a string that contains an HTML table element, enclosing each of the variables in its own cell, and I am new at php, help!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-Transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <title>Four Cell Table</title>
</head> <body> <?php // Script 10.6 - create-four-cell-table.php
// Address error handling. ini_set ('display_errors', 1); error_reporting (E_ALL & ~E_NOTICE);
$hello = "Hello World!"; $a_number = 4; $another_Number = 8; $4_cell_html_table = 4 html table; <table border="1"> <tr><td> Cell 1</td><td> Cell 2</td></tr> <tr><td> Cell 3</td><td> Cell 4</td></tr> </table> ?>
|