Dynamic variable in PHP


Variable in PHP  can be used altough it’s not declared.

In PHP you can use dynamic variable like this.

<?

$user = “variabel2″;

$$user = “Hello this is content from variabel 2″;

echo $variabel2; //Hello this is content from variabel 2

?>

Leave a Reply




This some posting which are related to this article :
  • Arrange variable
  • Easy Get Variable POST and GET
  • Passing By Reference
  • just read related article


    Some random post which may be interesting :
    this article is selected randomly