خوب این هم اون چیزی که می خواستین:
<?php
//Script by PC man @ majidonline.com
$text = "Php is my favorite you try it!";
$tag1 = "";
$tag2 = "";
$tag1_len = strlen($tag1);
$seek1 = strstr($text,$tag1);
$seek2 = strstr($text,$tag2);
if($seek1 & $seek2) {
$pos1 = strpos($text,$tag1);
$pos2 =...