Answers for "and condition in php if"

PHP
5

if condition in php

easy way to execute conditional html / javascript / css / other language code with php if else:

<?php if (condition): ?>

html code to run if condition is true

<?php else: ?>

html code to run if condition is false

<?php endif ?>
Posted by: Guest on July-26-2021
1

php multi condition if

if($var == "abc" || $var == "def" || ...)
{
    echo "true";
}
Posted by: Guest on December-06-2020

Browse Popular Code Answers by Language