Hi all!
ring have some way and/or operator to expand like $$ in php ?
$ cat test.php
<?php
$name = "earth";
$nameOfPlanet = "name";
echo $nameOfPlanet . PHP_EOL;
echo $$nameOfPlanet . PHP_EOL;
$ php test.php
name
earth
* The $x (single dollar) is the normal variable with the name x that stores any value like string, integer, float, etc. The $$x (double dollar) is a reference variable that stores the value which can be accessed by using the $ symbol before the $x value. These are called variable variables in PHP.