PHP Language Basics by acreaper_php tutorial

Source: Internet
Author: User
03.01 logical operator &&,and | |,or xor here only to emphasize a bit with and or OR, remember to add parentheses, otherwise it may be wrong, as for the reason I am not very clear, anyway as far as possible directly with the &&,| | All right, and C is also used in these two. The bitwise operators in the 03.02-bit operator (Bitwise Operators) &,|,^ php are also for integers. Unless the two operators are strings, the conversion of one of them to an integer is not an integer, and if two are strings, the length is the shorter primary (except for the longer-to-be-main), in characters (each character is converted to an integer). It can be understood that the shorter the back of the 0 fill, and & rather with the multiplication, so according to the number of digits to calculate the past is shorter than the main, because after the calculation you have to remove 0. and | is equivalent to the addition operation, therefore, the longer the prevail. The increment string (non-numeric value) of the 03.02.01 string is incremented in the same way as Perl. Using a ring-shaped queue model, if the last letter is a literal or a number, the last word multibyte 1. If it is exceeded, then return to the starting point, such as ' Z ' + 1-' ' A ' 03.03 error suppression operator @ ERROR suppression operator @ is the error message suppressed during the evaluation of an expression. We will describe in detail the 03.04 control structure 03.04.01 If structure the first and the C language. The second type is more:, and endif; as the End if (expr) statement list elseif (expr): statement list else:statement list endif; The switch structure also has two, the second is more switch: and endswitch; switch (expr): Endswitch. The match in switch in PHP is done using = =. 03.05 loop control Structure This is the same as the C language is not discussed.

http://www.bkjia.com/PHPjc/477208.html www.bkjia.com true http://www.bkjia.com/PHPjc/477208.html techarticle 03.01 logical operators, and | |,or XOR here only to emphasize a bit with and or OR, remember to add parentheses, otherwise it may be wrong, for reasons I am not very clear, anyway, as far as possible directly with ...

  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.