Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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');
?>
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #html #table #array #php
ADD COMMENT
Topic
Name
8+4 =