Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. $json_file = file_get_contents("http://servidor.sys.net/sendsms?username=xxx&password=xxxx&phonenumber=999999999&message=ssssssss");
  2.  
  3. $json_str = json_decode($json_file, true);
  4.  
  5.  
  6. var_dump( $json_str );
  7.  
  8. array(2) {
  9. ["message"]=>
  10. string(8) "ssssssss"
  11. ["report"]=>
  12. array(1) {
  13. [0]=>
  14. array(1) {
  15. [1]=>
  16. array(1) {
  17. [0]=>
  18. array(4) {
  19. ["port"]=>
  20. string(7) "gsm-2.2"
  21. ["phonenumber"]=>
  22. string(11) "999999999"
  23. ["time"]=>
  24. string(19) "2017-08-04 07:34:35"
  25. ["result"]=>
  26. string(7) "success"
  27. }
  28. }
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement