Advertisement
Guest User

Untitled

a guest
May 26th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. if (($out = curl_exec($curl)) !== FALSE) {
  2.  
  3. $found = array();
  4. preg_match_all('|<div class="response">(.*)<label class="l c_l f_none" for="">|isU',$out, $found);
  5.  
  6. $content = '';
  7. $content = preg_replace('/<div class="response-header highlight">[sSn]+?</div>/im', '', $found['0']['0']);
  8. $content = preg_replace('/<a href=".+">([sS]+?)</a>/im', '${1}', $content);
  9. //..
  10. $content = preg_replace("/ss/i", " ", $content);
  11.  
  12. preg_match_all("/местоположение:</strong>(.+?)</p>/im", $content, $output);
  13. $output = preg_replace("/ss/i", "", $output[1][0]);
  14.  
  15. array(2) {
  16. [0]=>
  17. array(1) {
  18. [0]=>
  19. string(102) "местоположение: строковые данные....
  20.  
  21. "
  22. }
  23. [1]=>
  24. array(1) {
  25. [0]=>
  26. string(60) "строковые данные..."
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement