Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php if statement with multiple conditions

<?php 
$thisuri = $_SERVER['REQUEST_URI'];
$thisarray=array(
    '/url1/',
    '/url2/',
    '/url3/',
    '/url4/',
    '/url5/'
    );
if ( in_array($thisuri,$thisarray) ) { ?>
<!-- Your HTML code goes here -->
  <!-- Pixel --><!-- /Pixel -->
<?php }?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #statement #multiple #conditions
ADD COMMENT
Topic
Name
7+7 =