Anda di halaman 1dari 1

<?

php
<?php
$file=$_GET['file'];
$lihat=file_get_contents($file);
$regex="<ul>(.*)<\/ul>";
//cari tag ul
if(preg_match_all("/$regex/siU",$lihat,$matches,PREG_SET_ORDER) )
{
foreach($matches as $match)
{
//ini tag li nya
echo $match[1].'<br />';
}}
?>
?>

Anda mungkin juga menyukai