Jump to content

unset();


xyn

Recommended Posts

Why are you trying to unset $_POST variable?

 

$_POST is a reserved enviromental variable and will be unset when the script finishes running.

 

Pass the value of $_POST to user defined variable then you can unset that if needed.

 

so

 

$myvar=$_POST;

 

echo $myvar;

 

echos the value of $myvar;

 

unset($myvar);

 

echo $myvar;

 

result will be empty.

Link to comment
https://forums.phpfreaks.com/topic/73933-unset/#findComment-373227
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.