In previous post we have learned how if-elseif-else conditional statement works. Php provides one more conditional statement named switch-case . switch-case statements generally used for more precise and deterministic decisions. We generally check if given value fully matches with given single value in each statement. Syntax of switch-case is like below.