Author name: Tutor Network Team

PHP try Keyword

In this article, you will learn how to declare try catch block in PHP. The try keyword in PHP is used to create a try…catch, or a try…catch…finally statement. examples of the TRY keyword Example 1. In this example, we use a try…catch statement to handle exceptions.

PHP use Keyword

In this article, you will learn about use keyword. The use keyword in PHP has two purposes: it tells a class to inherit a trait and it gives an alias to a namespace. examples of the USE keyword Example 1. In this example, we create a trait and use it in a class.

PHP var Keyword

In this article, you will learn abot var keyword in PHP. The var keyword in PHP creates a property in a class. Since PHP 5, it is equivalent to the public keyword. examples of the VAR keyword Example 1. In this example, we use var to create a property.

PHP xor Keyword

In this article, you will learn about XOR keyword in PHP. The xor keyword is a logical operator. Logical operators are used to combining conditional statements. The return value will only be true if one of the statements is true and the other one is false. examples of the XOR keyword Example 1. In this …

PHP xor Keyword Read More »

PHP abstract Keyword

In this article, you will learn how to declare an abstract class in PHP. The abstract keyword in PHP declares a class as abstract. Abstract classes cannot be instantiated but they can be extended. examples of the ABSTRACT keyword Example 1. In this example, we create an abstract class.

PHP and Keyword

In this article, you will learn about AND keyword in PHP. The and keyword in PHP is a logical operator. Logical operators are used to combine conditional statements. The return value will only be true if both statements return true, otherwise it will return false. examples of the AND keyword Example 1. In this example, …

PHP and Keyword Read More »

en English
X
Scroll to Top