我有一个代码......就像这样......
$version = 2.0;
$customerid = 234;
$data = trim($row['signform']); // this url string in mysql
echo $data;
//The browser result is
'version='.$version.'&customerid='.$customerid
我无法得到像
这样的结果version=2.0&customerid=234
但如果我设置
$version = 2.0;
$customerid = 234;
$data = 'version='.$version.'&customerid='.$customerid;
echo $data;
我明白了!
现在,我需要加载参数字符串包含$ variable,之前设置的值,然后浏览器显示字符串
version=2.0&customerid=234
答案 0 :(得分:0)
$version = 2.0;
$customerid = 234;
$total_fee=100;
$data = trim($row['signform']);
$cc = eval("echo $data;");
echo $cc;
Resoved!