If you are a complete scraping beginner, this article is for you. If not, move on, because we are going to learn about scraping and parsing, but without using regular expressions or any supporting libraries. Moreover, we will do it using basic PHP string functions. Sure, PHP is not the best language choice for scrapping and parsing but it’s easy to learn and comprehend so it is a good candidate for beginners. First, we are going to explain what parsing is. Then, we are going to have a look at arrays, the GET method, stream_context_create and file_get_contents functions. Afterward, we are going to apply the strpos and substr functions, and at the end of this mini-project, we are going to display the results using print_r function.
Roll your sleeves PHP beginner, we are diving in.
…