Home >Backend Development >PHP Tutorial >Summary of usage examples of PHP special operators

Summary of usage examples of PHP special operators

伊谢尔伦
伊谢尔伦Original
2017-06-11 13:17:401349browse

Annotation symbol:// Single-line annotation /* */Multiple-line annotation' ' Single quotation marks, simple strings, taken directly without any processing; " "Double quotation marks, PHP dynamic processing and output, generally used to process $ Variables. Boolean variables: One is true, which is true; the other is false, which is false. Common variables: string string (numbers\Chinese characters\etc.) integer integer (1, 2, 3, 4, 5, 0, -1, -2, etc.) double floating point number (decimal point) array array object The methods that can be used on the object are gettype($mix) and settype($mix,$typename); Commonly used symbol escapes: \" double quotes\\ backslash\n newline\r return to the beginning of the line\t Horizontal tabulation operation symbols: + addition operation - subtraction operation* multiplication operation/division operation % take the remainder++ add 1 to yourself -- Decrement by 1. Connect two string assignment operations: = Substitute the value on the right into the left += Put

1. Special operation symbols and functions commonly used in PHP development

Summary of usage examples of PHP special operators

Introduction: Annotation symbol://single-line annotation multi-line annotation quotation marks'' single quotation mark, simple string , take it directly without any processing;

2. Summary of common special operation symbols and functions in php

Summary of usage examples of PHP special operators

Introduction: Annotation symbols: // Single-line annotation Use of quotation marks for multi-line annotation ' ' Single quotation marks, simple strings, taken directly without any processing; " "Double quotation marks , PHP dynamic processing and then output, generally used to process $ variables.

3. Special operation symbols and functions commonly used in PHP

Introduction: The more commonly used special operation symbols and functions in PHP

4. Summary of commonly used special operation symbols and functions in PHP (a must-read for newbies to PHP) _PHP Tutorial

Introduction: Summary of commonly used special operation symbols and functions in PHP (a must-read for beginners in PHP). Annotation symbols: // Use of quotation marks for single-line comments and multi-line comments ' ' Single quotes, simple strings, taken directly without any processing; " "Double quotes, PHP dynamically processes and outputs, generally used to process

5. PHP commonly used special Summary of operation symbols and functions (a must-read for newbies to PHP)

Introduction: Summary of commonly used special operation symbols and functions in PHP (a must-read for newbies to PHP) Annotation symbols: // The use of quotation marks for single-line comments and multi-line comments' ' Single quotation marks, simple strings, are taken directly without any processing; " "Double quotation marks, PHP dynamically processes and then outputs them, generally used for processing

6. Summary of commonly used special operation symbols and functions in PHP (a must-read for newbies to PHP)_PHP

Introduction: Newbies often have problems with some PHP special symbols , here is a summary of commonly used special symbols. If you can use them all, just think of it as a refresher.

##7. Summary of commonly used special operation symbols and functions in PHP (php newbies) A must-read for getting started)_php tips

Introduction: Newbies often have problems with some PHP special symbols. Here is a list of commonly used special symbols. If you can use them all, then think of it as reviewing the past and learning the new

The above is the detailed content of Summary of usage examples of PHP special operators. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn