can we use if inside if statement in php code example
Example 1: if condition inside echo in php
echo '<option value="'.$value.'" '.(($value=='United States')?'selected="selected"':"").'>'.$value.'</option>';
Example 2: if statement php
if (condition) {
expression
}