I would like to be able to search an array for a match the a specific
variable.  So far, I have been trying to use preg_grep but am not getting
the results that I want.

Basically, I would have a variable: $url = "domain.com"

I would like to search an array to see if the value of the variable $url
exists in this array.  The array would look like:

$archives = array( "domain.com","domain2.com");

As for the results of the search, I just need a simple yes/no 1/0 response.
What would be the best method of handling this?


Thank You,
Jason Williard

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to