is there a simple function that does this:
$string = '<abc x="12">sth</abc>';
$start_part = '<abc x="12">'; //left to searched value
$end_part = '</abc>'; //right to search value
$value = separate($string, $start_part, $end_part);
echo "value: " . $value;
---------
OUTPUT:
value: sth
---------
actually, i want to parse larger $string than in example, but i'm sure it illustrates the problem.
thank you for answers!
$string = '<abc x="12">sth</abc>';
$start_part = '<abc x="12">'; //left to searched value
$end_part = '</abc>'; //right to search value
$value = separate($string, $start_part, $end_part);
echo "value: " . $value;
---------
OUTPUT:
value: sth
---------
actually, i want to parse larger $string than in example, but i'm sure it illustrates the problem.
thank you for answers!