TAILIEUCHUNG - Lecture E-Commerce - Chapter 30: PHP (part II)

After studying this chapter you will be able to understand: PHP comparison operators, PHP conditional statements, PHP - The statement, the PHP switch statement, the PHP while loop, the PHP foreach loop,. | CSC 330 E-Commerce Teacher Ahmed Mumtaz Mustehsan GM-IT CIIT Islamabad Virtual Campus, CIIT COMSATS Institute of Information Technology T2-Lecture-10 PHP Part-II T2-Lecture-10 For Lecture Material/Slides Thanks to: PHP Comparison Operators The PHP comparison operators are used to compare two values (number or string): Operator Name Example Result == Equal $x == $y True if $x is equal to $y === Identical $x === $y True if $x is equal to $y, and they are of the same type != Not equal $x != $y True if $x is not equal to $y Not equal $x $y True if $x is not equal to $y !== Not identical $x !== $y True if $x is not equal to $y, or they are not of the same type > Greater than $x > $y True if $x is greater than $y = Greater than or equal to $x >= $y True if $x is greater than or equal to $y 1- Example of Comparison Operators "; var_dump($x === $y); echo ""; var_dump($x != $y); echo ""; var_dump($x !== $y); echo ""; $a=50; $b=90; var_dump($a > $b); echo ""; var_dump($a T2-Lecture-9 Ahmed Mumtaz Mustehsan 1- PHP Logical Operators Operator Name Example Result and And $x and $y True if both $x and $y are true or Or $x or $y True if either $x or $y is true xor Xor $x xor $y True if either $x or $y is true, but not both && And $x && $y True if both $x and $y are true

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.