Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. USER SAVED IN DB.{"user":{"_token":"9ylCAviuuCaNlCtXNya5pEXkY8vkJepZAohsG5VI","submit":"engageiq_post_data","affiliate_id":"","campaign_id":"","offer_id":"","s1":"","s2":"","s3":"","s4":"","s5":"","address":"","phone1":"","phone2":"","phone3":"","phone":"","source_url":"http://pfr_laravel.dev/registration","ip":"192.168.10.1","screen_view":"1","first_name":"fff","last_name":"ff","email":"r@yahoo.com","zip":"00501","birthdate":"","dobmonth":"04","dobday":"12","dobyear":"1965","gender":"M","chk_agree":"","submitBtn":"Submit","state":"NY","city":"Holtsville","revenue_tracker_id":1},"revenue_tracker_id":1,"path_type":2,"campaigns":[[1,15,25,48,38,23,44],[245],[249],[27,4,19,181,18],[16],[246],[51,52,151],[10],[26,2,185,180,45,184,182]],"creatives":[]}
  2.  
  3. json_decode($myjson, true)
  4.  
  5. if (path_type == 2){}
  6.  
  7. $myjson = substr($myjson, 17); // remove bulk from JSON
  8.  
  9. $data = json_decode($myjson, true);
  10.  
  11. if ($data['path_type'] == 2) {
  12. // code
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement