Tags
PHP
Asked 2026 years ago
30 Nov -0001
Views 193
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