I am running the following code:

if(is_array($check)) {
                foreach($check as $val) {
                    if($_SERVER['PHP_SELF']==$val) {
                        $show = false;
                        break;
                    } else {
                        echo "<p>".$_SERVER['PHP_SELF']."!=".trim($val)."</p>";
                    }
                }
            }

And I am getting the following output:

/client/scheduled.php!=/client/scheduled.php

Hopefully it's not something dumb on my part, I appreciate any advice.

Aaaand it was something dumb on my part...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.