Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php multi condition if

if($var == "abc" || $var == "def" || ...)
{
    echo "true";
}
Comment

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 }?>
Comment

PREVIOUS NEXT
Code Example
Php :: Enqueue WordPress Scripts and Styles 
Php :: laravel blade routeIs 
Php :: how to see php error log 
Php :: laravel wheredate 
Php :: uninstall phpstorm ubuntu 
Php :: php image resize 
Php :: explode segments url php 
Php :: How to create and access angular HTTP params in PHP 
Php :: php define multiple variables as 0 
Php :: eloquent get trashed record 
Php :: laravel foreign 
Php :: add controller to laravel with requests 
Php :: php logout 
Php :: declare empty array in php 
Php :: Eloquent models events 
Php :: date_default_timezone_set(): timezone id 
Php :: how naming resource routes laravel 
Php :: php decode json object 
Php :: php proper function comments 
Php :: shortcode in wp 
Php :: append data in csv file php 
Php :: How to calculate the sum of values in a list PHP 
Php :: php artisan make :migration with model 
Php :: clear cache symfony 
Php :: Converting timestamp to time ago in PHP 
Php :: php slice last arrat 
Php :: php json data to array 
Php :: laravel upload file to aws s3 
Php :: how to make model and controller in laravel 
Php :: laravel 8 websockets 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =