Php developer create website

Solve china dataset issues with shared expertise and innovation.
Post Reply
sohanuzzaman54
Posts: 123
Joined: Mon Dec 23, 2024 4:25 am

Php developer create website

Post by sohanuzzaman54 »

Variables are the parent of a particular data set. They can be named using any term, as long as it is easy for the programmer to understand. However, their writing has been specifically regulated by PHP developers.

These rules include:

The prefix uses the $ symbol, right in front of the variable name.
The first character in a variable name can only be a letter or the underscore symbol (_).
Subsequent characters in a variable name may only use letters, numbers, or a combination of both, written without spaces.
Variables, and PHP code writing in general, are list of northeast cell phone numbers case sensitive . This means that the name of a variable that will be used repeatedly, the upper and lower case letters must be exactly the same. If not, it will be considered a different variable.
The initiation to set the value of a variable is declared by the equal sign (=).
Writing example: $variable = [value]

Data Type
Variable values ​​can have various forms, which in this case are called data types. There are a total of eight PHP data types, each containing its own type of value, including:

String: in text form, written in a pair of quotation marks (“)
Integer: a whole number, written without any symbols.
Float: also called the double data type , in the form of a decimal number with a dot
Boolean: only has two possible values, namely true (1) or false (0)
Array: complex in form, can be an index or a collection of values ​​stated in one block in the middle of square brackets [ ].
NULL: indicates an undefined value, written with the term NULL
Object: a specific data type and value from a class created specifically by the programmer for his own purposes.
Resource: a special variable related to other resources outside PHP, for example a database connection.
Operator
In PHP, operators are symbols for initiating data processing. Like in mathematics, if 3 + 4 = 7, then the ( + ) and ( = ) signs are the operators in question. However, PHP operators are not that simple.


This programming language supports several types of operators, including Arithmetic Operators, Comparison Operators, Logical or Relational Operators, Assignment Operators, Increase and Decrease Operators, Array Operators, String Operators, and Conditional Operators. Given that each type of operator has a variety of different functions, it is impossible to describe them all here. Therefore, the following description will only contain a general overview.
Post Reply