Last active
December 19, 2015 22:38
-
-
Save alancoleman/6028317 to your computer and use it in GitHub Desktop.
Use strpos to to establish a string in a url and use as an argument
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if( strpos( $_SERVER['REQUEST_URI'], 'my-url' ) !== false ) { | |
// Do something | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment