Tags
PHP
Asked 2025 years ago
30 Nov -0001
Views 161
Arnaldo

Arnaldo posted

What is difference between $ and $$ in PHP ?


$A;
$$A

What is difference between $ and $$ in PHP ?
Where should i used $$ in PHP Instead of $ ?
jabber

jabber
answered Jul 21 '21 00:00

$ is used for standard variable init or use it

$$ is used for getting use of the value as variable ;

if
$a='i';
than $$a means is qual to $i
so if you do echo $aa; means echo $i;

Post Answer