[Solved] PHP if statement with OR operators [closed]

[ad_1]

Use || statement.

<?php if($CURRENT_USER['selected_plan_id'] == '4' || $CURRENT_USER['selected_plan_id'] == '5' || $CURRENT_USER['selected_plan_id'] == '6'): ?>

Or

Use in_array().

$arr = Array (4,5,6);
<?php if(in_array($CURRENT_USER['selected_plan_id'],$arr)): ?>

1

[ad_2]

solved PHP if statement with OR operators [closed]