I have an array
$tokens = array('token1','token2','token3','token4','token5','token6');
I have stored this array in SESSION
$_SESSION["tokens"] = $tokens;
Now, I need to remove an element from this array
if(in_array('token3',$_SESSION["tokens"])) {
// remove it from the array
}
So, How can I remove 'token3'
element from $_SESSION["tokens"]
array??