In website A I want to gather some of website's B content. For example, I need to get website's B code lines 17-20 and store that text in website's A variable $text_from_website_b . How this code should look like?
If it's going to be lines 17-20 every time you could split by new lines in to an array, and just access elements 16-19 of the array.