in php i want to explode string with tag using utf-8 between them, for example, in this text:
$content = \"فهرست اولhi my name is
You can use preg_match, or in your case, preg_match_all:
preg_match
preg_match_all
$content = "فهرست اولhi my name is mahdi whats app فهرست دومhow are you"; preg_match_all("'.*?<\/heading>'si", $content, $matches); print_r($matches[0]);
gives:
Array ( [0] => فهرست اول [1] => فهرست دوم )