![]() |
![]() |
Biraz daha açar mısınız? Örnek?
<?php
$adres=file_get_contents("$_POST[url]");
$basla='<title>';
$bit='<\/title>';
preg_match("/$basla(.*)$bit/si",$adres,$yaz);
echo $yaz[1];
?>
function arayi_al($bunla,$bunun,$toplam) {
$al = explode($bunla,$toplam);
$al = explode($bunun,$al[1]);
$al = $al[0];
return $al;
}
$text = "a huseyin ahmet mehmet candan b";
echo arayi_al("a "," b",$text);
?>