I have this code which is to check if google exist in the external array file, it gives me the blank result but when i transferred the array into the same file or inline the list, it works. I'm using the external array file for global use.
$approveurl = file('../webfilters.php');
if(in_array('http://google.com', $approveurl)){ echo "Success";}
http://google.com?FILE_IGNORE_NEW_LINESflag, otherwise all the strings in the array will end with newline, so they won't match.