SHARE
TWEET

Untitled

a guest Jan 21st, 2019 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $groupsApi = (new MailerLiteApiMailerLite($apiKey))->groups();
  2. foreach ($groupsApi->get() as $g) {
  3.     $subscribers = $groupsApi->getSubscribers($g->id);
  4.     foreach($subscribers as $sub) {
  5.         var_dump($sub->id);
  6.         var_dump('413076286433501727');
  7.         $formated1 = sprintf('%d', $sub->id);
  8.         $formated2 = sprintf('%.0f', $sub->id);
  9.         var_dump($formated1);
  10.         var_dump($formated2);
  11.     }
  12. }
  13.    
  14. float(4.130762864335E+17)
  15. string(18) "413076286433501727"
  16. string(11) "-1509842432"
  17. string(18) "413076286433501696"
  18.    
  19. int(413076286433501727)
  20. string(18) "413076286433501727"
  21. string(18) "413076286433501727"
  22. string(18) "413076286433501696"
  23.    
  24. $groupsApi = (new MailerLiteApiMailerLite($apiKey))->groups();
  25. foreach ($groupsApi->get() as $g) {
  26.     $subscribers = $groupsApi->getSubscribers($g->id);
  27.     foreach($subscribers as $sub) {
  28.         var_dump($sub->id);
  29.         var_dump('413076286433501727');
  30.         $formated1 = sprintf('%d', $sub->id);
  31.         $formated2 = sprintf('%.0f', $sub->id);
  32.         var_dump($formated1);
  33.         var_dump($formated2);
  34.     }
  35. }
  36.    
  37. float(4.130762864335E+17)
  38. string(18) "413076286433501727"
  39. string(11) "-1509842432"
  40. string(18) "413076286433501696"
  41.    
  42. int(413076286433501727)
  43. string(18) "413076286433501727"
  44. string(18) "413076286433501727"
  45. string(18) "413076286433501696"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top