Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. foreach ($products as $product){
  2. ...
  3. $pageContent = file_get_contents($sourcePageURL);
  4. preg_match('/<'.$openedTagWithClass.'>'(.*?)<\/'.$openedTag.'>/is', $pageContent, $priceString);
  5. $priceFromLink = $priceString[1];
  6. ...
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement