Introduction: This is Php study note (3)-a detailed page of operators and control structures. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: //
1. Ask for positive andRequirements: Enter 10 numbers, find the positive number and positive numbers, and enter 999 to close the program:2. Date of requestRequirement: Enter year, month, date to find out the day of the year3. Common JavaScript logic
1. Java If statement1,if statement if (condition) {statement;}if (condition) {statement 1;}else{statement 2;}2, multiple If-else statement if (condition 1) {statement 1;}else if (condition 2) {statement 2;}else{statement;}2, go if statement For
Chapter II1. Data type variable name = value;Eg:Double score = 15.65;String name = "Zhang San";Char sex = "male";
Data type Strong turn
Data type variable name = (data type) value;Example:Double num=15.75;int sum = (int) num;Results:
Reference: First, the user log into the system after the system environment variables:
$HOME user's own directory
$PATH directory to search for when executing commands
$TZ Time Zone
$MAILCHECK every few seconds to check for new letters
$PS 1 The
1. Sequential structureSequential structure of the program design is the simplest, as long as the solution to solve the problem in order to write the corresponding statement on the line, its execution sequence is top-down, followed by execution.
For
Code | Code 1. Introduced
1.1. The importance of standardization
The problem of standardization in some ways gives everyone a headache and makes everyone feel like they're in the same situation. This helps to keep these recommendations evolving
Coding | Specification PHP code specification
1. Introduce
1.1. Key to Standardization * *
The problem of standardization in some ways gives everyone a headache and makes everyone feel like they're in the same situation. This helps to keep these
Oracle Database Programming: PL/SQL program control structure: condition control: if statement: if condition 1 then if condition 1 is true execute the statement here ...... Elsif condition 2 then if condition 2 is true, execute the statement here ...
1. Introduction1.1. The important standardization issues of standardisation in some ways everyone has a headache and makes everyone feel that everyone is in the same situation. This helps to keep these recommendations evolving across many projects,
Sequential process
You have a cup of water, which is generally like this:1. fill the cup with boiling water;2. Wait for boiling water to cool down;3. Pour it in your mouth.In this example, you can think of how to accomplish things,There must always
Some time ago, I encountered such a problem in the project.
I provide some functions, such as a (), B (), C ()...... Then others call different functions according to the actual situation. These functions have
In common, the call method is very
1. system environment variables after the user logs on to the system $ HOME user's directory $ PATH the directory searched for when executing the command $ TZ time zone $ MAILCHECK check every several seconds
1. system environment variables after
conditional Statements
When you write code, you often need to perform different actions for different judgments.
You can use conditional statements in your code to accomplish this task.
If...else statements
Executes a piece of code when the
The If, ElseIf, and ELSE statements are used to perform different actions based on different conditions.
Conditional statements
When you write code, you often need to perform different actions for different judgments. You can use conditional
PHP statement Directory for the front end: [1] condition statement if statement switch statement [2] loop statement while loop do & hellip; while loop for loop foreach loop condition statement is used to execute different actions based on different
--------------------
VBA syntax BASICS (II)--------------------
Basic statement
1. Control Program Flow Statement
(1) GOTO statement
This statement transfers the executed program to the statement instruction where the specified tag is located, but
How to Use the if... else statement in Lua
This article mainly introduces how to use the if... else statement in Lua. It is the basic knowledge of Lua beginners. For more information, see
The if statement can be followed by an optional else
PHP process control and php processPHP-if statement
If statement is usedRun the Code only when the specified condition is set..
Syntax
If (condition) {code to be executed when the condition is set ;}
If the current time is less than 20, the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.