Monday, May 30, 2011

difference between $ and $$ php or static and dynamic variable

<?php
//difference between $ and $$ php or static and dynamic variable
$message = 'name';
$name = 'afroz';
echo '$message='.$message;//outputs - $message=name
echo '$$message='.$$message;//outputs - '$$message=afroz
?>

1 comment:

  1. @Lauraine Your appreciation really motivates us to bring more...Thanks

    ReplyDelete