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.
Thanks for all guidelines and suggestions.