- 01
 - 02
 - 03
 - 04
 - 05
 - 06
 - 07
 - 08
 - 09
 - 10
 - 11
 - 12
 - 13
 - 14
 - 15
 - 16
 - 17
 - 18
 - 19
 - 20
 - 21
 - 22
 - 23
 - 24
 - 25
 - 26
 - 27
 - 28
 - 29
 - 30
 - 31
 - 32
 - 33
 - 34
 - 35
 - 36
 - 37
 - 38
 - 39
 - 40
 - 41
 - 42
 - 43
 - 44
 - 45
 - 46
 
                        ///////////////////////////////////////////////
////////////
//Содержимое
function One($str,$tag,$num=1,$p=1){
if($num=='0'){ $num='1'; }
//Разделитель <тег
$see_st=explode('<'.$tag,$str);
if($p!==1){ $see_st=explode($p,$str); 
$end=explode('>',$see_st[$num]); 
$see_st[$num]='.'.$end[1];
}
//Разделитель </тег
$see_end=explode('</'.$tag,substr($see_st[$num],'1'));
return $see_end[0];
}
///////////////////////////////////////////////
/////////
//Парсинг
function Parse($go,$str=0){
if($str==0){ $str=$this->String; }
//Разбили путь
$path=explode("/",$go);
//Обрабатываем путь
for($go_n=0;$go_n<count($path);$go_n++){
//$go_n='2';
//Номер тега
$num=explode(':',$path[$go_n]);
if($num[1]==NULL){ $num[1]=1; }
if($go_n=='0'){ $string=$str;}else{ $string=$t[$go_n-1]; } 
$t[$go_n]=$this->One($string,$num[0],$num[1]);
}
return $t[$go_n-1];
}