border: 1px solid black; width: 100px; border-collapse: collapse; } td { margin: 0px; background-color: rgb(240,240,240); border: 1px solid black; width: 100px; border-collapse: collapse; } select { width: 100px; border: 1px solid gray; border-radius: 3px; } </style> </head> <body> <?php # Typical multidimentional that you'd get from a database response. $from_database = array(array('first_name' => 'Josue', 'last_name' => 'Chery', 'hobby' => 'soccer'), array('first_name' => 'Angelita', 'last_name' => 'Chery', 'hobby' => 'singing'), array('first_name' => 'James', 'last_name' => 'Joseph', 'hobby' => 'basketball')); $users_table = new html_helper(); $users_table->print_table($from_database); # Array for state options $states = array('AL', 'AK', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DE', 'FL', 'GA', 'HI', 'ID', 'IL', 'IN', 'IA', 'KS'); $select_states_option = new html_helper(); $select_states_option->print_select('states', $states); ?> </body> </html>