[Solved] How to extract only certain data with file_get_contents

The best solution is probably to process the $homepage variable after it has been loaded. Have a look at String functions and regular expressions. file_get_contents() supports offset and maxlen options that can be used to control what parts of the file get loaded, but offset has behavior described by the documentation as “unpredictable” when used … Read more