Advertisement
Guest User

Untitled

a guest
May 25th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. $pattern = "/\/envato\/followers(.*)statnum\">([^<]+)/is";
  2. preg_match_all($pattern, $td_data, $matches);
  3. if (!empty($matches[2])) {
  4. $td_buffer_counter_fix = $this->extract_numbers_from_string($matches[1]);
  5.  
  6. // $td_buffer_counter_fix = str_replace(',','', $matches[1][0]);
  7. $buffy_array = (int) $td_buffer_counter_fix;
  8.  
  9. if (!empty($buffy_array) and is_numeric($buffy_array)) {
  10. $twitter_worked = true; //skip twitter second check it worked!
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement