[Introduction] PHP operator PHP has a rich set of operators, most of them directly from the C language. Depending on the function, operators can be divided into: arithmetic operators, string operators, assignment operators, bitwise operators,
What is a string operator? String operator introduction: a string operator is used to concatenate two strings to form a new string. We have introduced the arithmetic operators in PHP operators in the previous sections. I believe you have some
First, the PHP operator
PHP has a rich set of operators, most of which come directly from the C language. Depending on the function, operators can be divided into: arithmetic operators, string operators, assignment operators, bitwise operators,
First, the PHP operatorPHP has a rich set of operators, most of which come directly from the C language. Depending on the function, operators can be divided into: arithmetic operators, string operators, assignment operators, bitwise operators,
If it is correct, in the PHP language, the most commonly used operator number is ".", and the most used statement is "Echo ". It is easy to understand that PHP aims to generate hypertext scripts, which are composed of strings. Therefore, PHP
An expressionAlmost anything written is an expression, but the simplest and most precise way to define an expression is "anything that has value."Arithmetic operatorsCommonly used in PHP are: + 、-、 *,/,% (modulo, get the remainder)Left +-*/% a+=3
Summary of PHP-based programming considerations. 1. php implicit ternary operators (? :) Priority problem: Example 1: Copy the code as follows: $ person $ whoor $ personlaruence; is actually equivalent to: $ personempty ($ who )? La
1. php implicit
One: Conversion of data typesGet type:GetType ($a);Determine if there is some type of data:Is_ type name ($a);1. (int) $a;2.settype ($a, int);Two: operator expressions1. Mathematical operators/except: integer In addition to integer result is decimal
Document directory
I. Basic Knowledge
Ii. Pre-Defined variables
Iii. variable range
Iv. Variable
V. php external variables
I am honored to have been recommended to the homepage by the moderator in my previous article. I am so excited.
Common string operation functions in PHP development. 1. concatenating string concatenation strings is one of the most common string operations. in PHP, you can concatenate strings in three ways: dots. separator {} operation, dot equal sign 1,
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.