在php中获取url参数 [英] Get the url parameters in php
本文介绍了在php中获取url参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个网址:
I have a url :
http://localhost:17080/SMSService/Getsms.php?to=100001&body=6260575535299&from=09350000008
我想得到to,身体,来自。
我如何在php中执行此操作?
非常感谢
and I want to get the value of "to" , "body" , "from" . how can I do this in php? Thanks a lot
推荐答案
您可以尝试下面的内容。
you can try the below..
<?php
echo $_GET['to'];
echo $_GET['body'];
echo $_GET['from'];
?>
这篇关于在php中获取url参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文