How to output the URL of the variable $id such as tool.php?info=200@qq@ account $id
Source: Internet
Author: User
How to output the variables from the URL $id such as tool.php?info=200@qq@ account $id
$id =$_session[' id '];
$info =$_get[' info '];
$arr =expolde ("@", $info);
May have a friend will ask directly $id directly output the value of $id;
Because $id is the admin write-in then the user clicks on this connection tool.php?info= @qq @ account $id
The user's ID will then be automatically exported.
I thought about using the Eval function but there are friends who say it's not safe. Would you like to ask if there are other ways to the array $arr[2] $id output into a variable $id it??
------Solution--------------------
Assuming that the final data is still taken from $_session, the
$v = Preg_replace ('/\$ (\w+)/ie ', ' $_seeion[' $ "] ', $v);
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.