Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (($out = curl_exec($curl)) !== FALSE) {
- $found = array();
- preg_match_all('|<div class="response">(.*)<label class="l c_l f_none" for="">|isU',$out, $found);
- $content = '';
- $content = preg_replace('/<div class="response-header highlight">[sSn]+?</div>/im', '', $found['0']['0']);
- $content = preg_replace('/<a href=".+">([sS]+?)</a>/im', '${1}', $content);
- //..
- $content = preg_replace("/ss/i", " ", $content);
- preg_match_all("/местоположение:</strong>(.+?)</p>/im", $content, $output);
- $output = preg_replace("/ss/i", "", $output[1][0]);
- array(2) {
- [0]=>
- array(1) {
- [0]=>
- string(102) "местоположение: строковые данные....
- "
- }
- [1]=>
- array(1) {
- [0]=>
- string(60) "строковые данные..."
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement