I want to extract only text from a php string.
This php string contains html code like tags or etc.
So I only need a simple text from this string.
You may try:
echo(strip_tags($your_string));
More info here: http://php.net/manual/en/function.strip-tags.php