Search code examples
phpurlgetwebmethod

Get the url parameters in php


I have a url :

http://localhost:17080/SMSService/Getsms.php?to=100001&body=6260575535299&from=09350000008

‏ and I want to get the value of "to" , "body" , "from" . how can I do this in php? Thanks a lot


Solution

  • you can try the below..

    <?php
       echo $_GET['to'];  
       echo $_GET['body'];  
       echo $_GET['from'];  
    ?>