Thanks! That did the trick. Jason Williard
-----Original Message----- From: Greg Beaver [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 6:55 PM To: Jason Williard Cc: [EMAIL PROTECTED] Subject: Re: Array --> If Hi Jason, perhaps: <?php $cases = array(5, 15, 30, 60, 90, 120); if (in_array($count, $cases)) { include 'page.php'; } ?> Regards, Greg -- phpDocumentor http://www.phpdoc.org Jason Williard wrote: > I am building a script that I would like to have do a specific task > based on whether specific counts have been reached. > > Basically, the script checks for connectivity in a specific port. If > the connectivity fails, it increases the count by 1. It does this every > minute. I would like the script to page me at specific marker points > (i.e. 5, 15, 30, 60, 90, 120, etc). Is there anyway to make an if > statement or something similar to run in any case where the COUNT value > equals one of the numbers in the array? > > Example: > > $cases = array( 5, 15, 30, 60, 90, 120 ); > > if ( $count = {ITEM IN $cases} ) { > EXECUTE PAGE > } > > Thanks, > Jason Williard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php