এই ধরনের শর্তসাপেক্ষ মূল্যায়নের জন্য, PHP if(), else if() এবং else৷
ব্যবহার করুন৷উদাহরণ
পিএইচপি কোডটি নিম্নরূপ
<!DOCTYPE html> <html> <body> <?php $gameMode="BUY"; if($gameMode=="TRY") echo "GAME IS IN ",$gameMode," MODE","<br>"; else if($gameMode=="BUY") echo "GAME IS IN ",$gameMode," MODE","<br>"; else echo "GAME IS NEITHER TRY NOR BUY MODE","<br>"; ?> </body> </html>
আউটপুট
GAME IS IN BUY MODE