Thursday, 8 August 2013

Php protected variable

Php protected variable

Is there anyway to make an variable to protected and can't overwrite to php ?
p.s: Not in class or define.
For example;
<?php
$var ="something";
$var ="test";
echo $var;
?>
I want this code return "something" not "test".
Do you have any idea about this ?

No comments:

Post a Comment