Having issue getting this to work. I have an array in 'key.php' and I want to include it in 'processor.php' and check if a posted value is in it. I either get 500 errors or it returns the array as a string.
key.php
<?php $foo = array('thing1', 'thing2'); ?>
processor.php
<?php
$bar = include('/path/to/key.php');
$email = $_POST('email');
if (in_array($email, $bar)) {
echo('in array');
} else {
echo('not in array');
}
?>