
Using switch statements
-
HOW TO WRITE PHP SCRIPTS The main points to note about switch are as follows: • • • • • The expression following the case keyword must be a number or a string. You can t use comparison operators with case. So case 100: isn t allowed. Each block of statements should normally end with break, unless you specifically want to continue executing code within the switch statement. You can group several instances of the case keyword together to apply the same block of code to them. If no match is made, any statements following the default keyword are executed. If no...
10p
yukogaru14
30-11-2010
136
28
Download
-
Sử dụng Thông cáo chuyển Đôi khi bạn viết một tầng nếu tuyên bố, tất cả các nếu báo cáo nhìn rất giống nhau, vì tất cả họ đều đánh giá một biểu thức giống hệt nhau. Sự khác biệt duy nhất là mỗi khi so sánh kết quả của biểu thức có giá trị khác nhau.
5p
golly_tit
11-08-2010
75
7
Download
CHỦ ĐỀ BẠN MUỐN TÌM
