এটি হলো কারণ যদি আপনি && ব্যবহার করেন তবে দুটি কন্ডিশনই true হতে হবে। যদি যেকোনো একটি কন্ডিশন false হয়, তবে সামগ্রিক কন্ডিশন false-এ ইভ্যালুয়েট হবে।
PHP কোড নিচে −
উদাহরণ
<!DOCTYPE html> <html> <body> <?php $firstCondition= "John"; $secondCondition = "David"; if ($firstCondition == "John" && $secondCondition == "David" && ($firstCondition == "Mike" || $firstCondition == "John")) { echo "The above condition is true"; } else { echo "The above condition is not true"; } ?> </body> </html>আউটপুট
The above condition is true