$variable is a normal variable $$variable takes the value of a variable and treats that as the name of a variable
<?php
$var="Hello world";
$$var1="var";
echo $$var1;
?>
outPut:
Hello world
Here:
$var : Representa a variable.
$$var1: Represents a variable with content of $var.
No comments:
Post a Comment