I get source of some files. Then i need to extract fragments of text from there. What functions do you recommend to use?
I guess some string functions or regexp or xpath. It depends what text (criteria) you have to extract. Please provide more details or example of source file and desired output.
explode() can work. you need to regular expressions very well in order to digg expected texts from variety of patterns.
You should look at preg_match_all function and other similar functions available for matching/replacing regular expressions. http://php.net/manual/en/function.preg-match-all.php
ye... preg_match or preg_match_all is the way to go. explode is faster but seperates by the same string.
adamsinfo simplehtmldom is really usefull. Thamk you. Preg_match is less suite cause text changes every time