Menu
[CODE]$name = “nice day!”;
$wish = “$”.”name”;
echo $name;
echo “<br>”;
echo $wish;
Output:
[B]nice day!
$name
I wish that [B]$wish[B]nice day!
I am doing database, there are many similar strings, such as:
INSERT INTO some_table
(id, name, price, …..) //field sting
VALUES
($id, $name, $price, …..). //value string
If I can convert a string to variable name, I also can convert field string to value string.
Is it possible? — hope you understand what I mean.
Thanks.
.