PHP Operators

Operators are used to perform operations on variables and values. For example: $num=10+20;//+ is the operator and 10,20 are operands In the above example, + is the binary + operator, 10 and …

Read More →

Categories PHP

PHP Data Types

PHP data types are used to hold different types of data or values. PHP supports 8 primitive data types that can be categorized further in …

Read More →

Categories PHP

PHP Variables

In PHP, a variable is declared using a $ sign followed by the variable name. Here, some important points to know about variables: As PHP is a …

Read More →

Categories PHP

PHP Print

The PHP print Statement The print statement can be used with or without parentheses: print or print(). Display Text The following example shows how to output text with the print command (notice …

Read More →

Categories PHP

PHP Echo

PHP echo is a language construct, not a function. Therefore, you don’t need to use parenthesis with it. But if you want to use more …

Read More →

Categories PHP