Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $grab =file_get_contents('http://mfdonline.bps.go.id/master/cetak/cetak_desa.php?idprov=21&idkab=01&idkec=010') ;
- $start = '<table width="400" border="0" align="left" cellpadding="1" cellspacing="2">';
- $end = '</form>';
- $startPosisition = strpos($grab, $start);
- $endPosisition = strpos($grab, $end);
- $longText = $endPosisition - $startPosisition;
- $result = substr($grab, $startPosisition, $longText);
- $result = $result;
- echo $result;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement