Skip to content

nwtgck/PHP-HTML-Creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

PHP-HTML-Creator

Create HTML tag by using PHP

require_once "element.php";
			
$div = e("div")->add(
	text("hello world")
);
echo $div;
$table = e("table")->attr("border", 1)->
	add(e("tr")->add(
		e("td")
	))->
	add(e("tr")->add(
		e("td")
	));
echo $table->indented();

// Output:
// <div >
// 	hello world
// </div>
// 	<table border="1" >
// 		<tr >
// 			<td >
// 			</td>
// 		</tr>
// 		<tr >
// 			<td >
// 			</td>
// 		</tr>
// 	</table>

About

Create HTML tag by using PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages