If url contains a specific string

<?php if(strpos($_SERVER['REQUEST_URI'], 'Circle') !== false) { ?> Circle <?php } else { ?> Square <?php } ?>
Does something based on string value of the URL

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.