Bana verilen URL'yi ayrıştırarak bir PHP sayfası yazıyorum. Ne yapabilirim sadece ilk geçtiği bulmak, henüz onu yankı zaman, ben yerine verilen başka bir değeri olsun.
bu ben şimdiye kadar ne yaptım.
<?php
$URL = @"my URL goes here";//get from database
$str = file_get_contents($URL);
$toFind = "string to find";
$pos = strpos(htmlspecialchars($str),$toFind);
echo substr($str,$pos,strlen($toFind)) . "<br />";
$offset = $offset + strlen($toFind);
?>
Ben bir döngü kullanılabilir olduğunu biliyorum, ama ben `t döngü durumunu ne vücudu bilmek olurdu don.
Ve ben nasıl çıkış gösterebilir ihtiyacım?