You need to change this part...
$value = ["Email" => $decryptedemail];
array_push($returnedvalue, $value);
to this...
array_push($returnedvalue, $decryptedemail);
A basic array structure is in the form:
$arr = array( value, value, value );
However, you are creating an array that is multi-dimensional (see below) and is not able to be "searched" via the in_array()
function.
$arr = array ( array( key => value ), array( key => value ), array( key => value ) );
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…