Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach ($products as $product){
- ...
- $pageContent = file_get_contents($sourcePageURL);
- preg_match('/<'.$openedTagWithClass.'>'(.*?)<\/'.$openedTag.'>/is', $pageContent, $priceString);
- $priceFromLink = $priceString[1];
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement