Asked 2026 years ago
30 Nov -0001
Views 575
Esmeralda

Esmeralda posted

What is $$ PHP ?

What is $$ PHP ?
angeo

angeo
answered Jul 21 '21 00:00

$$ can be used for to make value of variable as variable

$data='hello';
$hello='data';
echo $$data;

it will print hello
because $$data=$($data)=$hello and $hello which is data

$$var means $($var) is $var 's value is getting used as variable now .

it will help in where complex programm.
Post Answer