$type = 'bravo';
if ($type === ('alpha' || 'bravo')) {
echo $type;
}
This never returns anything. Why this is happening?
$type = 'bravo';
if ($type === ('alpha' || 'bravo')) {
echo $type;
}
This never returns anything. Why this is happening?
Try this:
if ($type === 'alpha' || $type === 'bravo') {
echo $type;
}
You have to check values individually.