How to use a switch case ‘or’ in PHP?
is there such thing (in PHP anyway) for an OR operator in a switch case?
something like..
switch ($value) {
case 1 || 2:
echo 'the value is either 1 or 2';
break;
}
Total Views: 13 Today Views: 0
is there such thing (in PHP anyway) for an OR operator in a switch case?
something like..
switch ($value) {
case 1 || 2:
echo 'the value is either 1 or 2';
break;
}






Powered by Wordpress, Theme Design and Sponsored by tan wordpress templates and remote storage service