Answers for "html table to array php"

PHP
0

html table to array php

<?php

	$htmlContent = file_get_contents("http://teskusman.esy.es/index.html");
		
	$DOM = new DOMDocument();
	$DOM->loadHTML($htmlContent);
	
	$Header = $DOM->getElementsByTagName('th');
	$Detail = $DOM->getElementsByTagName('td');
?>
Posted by: Guest on October-18-2021

Browse Popular Code Answers by Language