$str=file_get_contents("http://www.heroeswm.ru/clan_info.php?id=41"); preg_match_all('/(Глава: .*?")/', $str, $name); $name = implode("", $name[0]); echo $name;
This script displays from the page all the information from "Chapter" to "Protocol". I also need to bring only nick Head. That is, so that proparsilos from “Head” and to the end of the nickname of the Head himself. How to fix? I understand that only the line needs to be changed:
preg_match_all('/(Глава: .*?")/', $str, $name);