Category: PHP Tutorial

python tutorials and learn python

Created with Sketch.

PHP if else

PHP if else Summary: in this tutorial, you’ll learn about the PHP if…else statement that executes a code block when a condition is true or another code block when the condition is false. Introduction to PHP if-else statement The if statement allows you to execute one or more statements when an expression is true: <?php…
Read more

PHP if

PHP if Summary: in this tutorial, you’ll learn about the PHP if statement and how to use it to execute a code block conditionally. Introduction to the PHP if statement The if statement allows you to execute a statement if an expression evaluates to true. The following shows the syntax of the if statement: <?php…
Read more

PHP Operators

PHP Operators Summary: in this tutorial, you will learn about PHP operators and how to use them effectively in your script. An operator takes one or more values, known as operands, and performs a specific operation on them. For example, the + operator adds two numbers and returns the sum of them. PHP supports many…
Read more

PHP NOT operator

PHP NOT operator Summary: in this tutorial, you will learn how to use the PHP NOT operator (!) to build complex logical expressions. Introduction to the PHP NOT operator Unlike the logical AND and OR operators that accept two operands, the logical NOT operator accepts only one operand and negates the operand. In other words,…
Read more

PHP OR Operator

PHP OR Operator Summary: in this tutorial, you’ll learn about the PHP OR operator (||) and how to use it to build complex logical expressions. Introduction to the PHP OR operator The logical OR operator accepts two operands and returns true if either operand is true; otherwise, it returns false. In other words, the logical…
Read more

PHP AND Operator

PHP AND Operator Summary: in this tutorial, you’ll learn about the PHP AND operator and how to use it to build a complex logical expression. Introduction to the PHP AND operator The logical AND operator accepts two operands and returns true if both operands are true; otherwise, it returns false. PHP uses the and keyword…
Read more

PHP Comparison Operators

PHP Comparison Operators Summary: in this tutorial, you will learn how to use PHP comparison operators to compare two values. Introduction to PHP comparison operators A comparison operator allows you to compare two values and returns true if the comparison is truthful and false otherwise. The following table illustrates the comparison operators in PHP: Operator…
Read more

PHP Assignment Operators

PHP Assignment Operators Summary: in this tutorial, you will learn about the most commonly used PHP assignment operators. Introduction to the PHP assignment operator PHP uses the = to represent the assignment operator. The following shows the syntax of the assignment operator: $variable_name = expression; Code language: PHP (php) On the left side of the…
Read more

PHP Type Juggling

PHP Type Juggling Summary: in this tutorial, you’ll learn about PHP type juggling and how it works. Introduction to PHP type juggling PHP is a loosely typed programming language. It means that when you define a variable, you don’t need to declare a type for it. Internally, PHP will determine the type by the context…
Read more

PHP Type Casting

PHP Type Casting Summary: in this tutorial, you’ll learn about the PHP type casting that allows you to convert a value of a type to another. Introduction to the PHP type casting Type casting allows you to convert a value of one type to another. To cast a value, you use the following type casting…
Read more