First page Back Continue Last page Overview Graphics

Writing Functions in PHP

  • <?php
  • function open_table() {
  • print “<table bgcolor=\”#000000\” border=\”0\””;
  • print “cellpadding=\”1\” cellspacing=\”0\” width=\”100%\”>\n”;
  • print “<tr>\n”;
  • print “<td>\n”;
  • print “<table bgcolor=\”#e3e3e3\” border=\”0\””;
  • print “cellpadding=\”3\” cellspacing=\”0\” width=\”100%\”>\n”;
  • }
  • ?>

    Notes: