There are two problems when judging the file type. The code is as follows:
if ($type!== ' gif ' | | $type!== ' JPEG ' | | $type!== ' png ') {
echo "Format error";
}
else {
Echo $type;
}
Question 1: Not equal, is with!==?
Issue 2: | | It doesn't work,
About the = Operator and if Statement of js
As we all know, these two are related to boolean values. The operator = returns a Boolean value, and the if () or ternary operator? : Boolean values are determined. In js, The = Operator and = operator are
The main topic is
Variable Extension System in. php Strings
More data types available in. php
. Type conversion
. Input and use variables and constants
. How to Build expressions and operators required to build expressions in php
. Use the available
Shell learning: Shell echo, printf, test command, echotestShell learning: Shell echo, printf, test command Shell echo command
Show normal strings
echo "hello"
Output: hello
Double quotation marks can be omitted as follows:
echo hello
Output:
Sometimes you can see that you use three equals (= = =) To determine whether two objects are equal, and what is the difference between a two equals sign (= =)? In simple terms, if you use "= =", if the two sides of different types, JS engine will
Theory
JVM Virtual Memory Distribution:The program counter is the pipeline of the JVM execution program and holds some jump instructions.The local method stack is the stack used by the JVM to invoke the operating system method.The virtual
BOOL Query Descriptionfilter:[], field filtering, not participating in the scoringMust:[], if you have multiple queries, you must satisfy the "and"Should:[], if there are multiple queries that satisfy one or more of the matching "or"Must_not:[], on
Nan is a value type, and it is also a number. It means not a number, and this all knows what it means. The value is special, especially if Nan is a digit and is a number that is not equal to any number.
Three NaN valuesis a special value that
If condition test common syntax
Test
[]
[[]]
())
Test command AND [] testing operator
Test
[]
(these two syntaxes are equivalent)
test operator
full Spell
[] and test
Both are the same, and the test expr and [expr] have the same effect on the command line.The three basic functions of test are to judge a file, judge a string, and judge an integer. Supports the use of "and or not" to concatenate
Condition testTo determine whether a demand is satisfied, it needs to be implemented by a testing mechanism.different test conditions are expressed according to the execution status result of the command1, according to the execution status of the ID
This article takes the shell from getting started to giving up the first stepThus, continue from small white to give up the second part of @[email protected]
First, the shell operator
The shell supports a number of operators, including:
(Zhaoxudong 2008.10.23 late 21.36).1. Both the Equals () and Hashcode () methods are inherited from the object class.The Equals () method is defined in the object class as follows:public boolean equals (Object obj) {return (this = = obj);}It is
Python operators
What is an operator?This section mainly describes the Python operators. To give a simple example 4 +5 = 9 . In the example, 4 and 5 are called operands, and the "+" number is the operator.The Python language supports the
An equal sign is the function of assigning values. The main problem is the difference between two and three equal signs. Many friends may not know it, there is a good example in this article, which mainly describes the differences between the two.
In javascript, it can be used to compare whether two data types are equal. If the two data types are different, the data will be compared after conversion.
The conversion rules are as follows:If the type of an operand is Boolean, convert it to
First, I have to explain that you can repeat these two methods in the class we write. At this time, from the syntax perspective, they do not matter.
In the object
public native int hashCode();
public boolean equals(Object obj) { return (this
This article does not provide a detailed description of all js operators, but lists the unique characteristics of js operators that are different from other common languages, at least it will not make us confused when reading some open-source
This blog will write some basic algorithms related to operation data. The content is very basic and helps you review your memory. You can also provide me with a document to quickly learn about basic algorithms, just like me, for those who are new to
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.