[请求] a php/JavaScript question

chhuili

新手上路
注册
2003-04-11
消息
81
荣誉分数
0
声望点数
0
My question is how to get the variable value if I know the variable name and its value in the programming. Since the variable name is generated according to the context in my programming, I could not using $lastname or $somethingelse directly in the program. For example, the variable name is "lastname" and the variable value is "Li" in the programmimg, how can I get the value "Li" by the variable $lsatname" ?
Thanks for all guidelines and suggestions.
 
<?php
$lastname = "li";
print $lastname;
?>
??????
 
最初由 ???狗 发布
<?php
$lastname = "li";
print $lastname;
?>
??????

This is one simplest way. However, you may need to change something in php.ini
 
后退
顶部