there is a strange question
suppose I declare
$self = $_SERVER["PHP_SELF"];
then I wrote a function below
$self = $_SERVER["PHP_SELF"];
function report(){
echo $self;
}
and then I"ll do another one
report();
he will say
Undefined variable: self
do I have to announce it in front of function?
this is the only way to make it work:
function report(){
$self = $_SERVER["PHP_SELF"];
echo $self;
}