Tag

PHP

PHP Callable

The PHP callable or callback refers to the function that accepts another function callback in the parameter. Which is executing the code when calling the main function. In this tutorial, we will focus on the user function callback. How to pass the function as a parameter to another function, execute the functions in the class,

PHP Iterable

The first appearance of PHP iterable was in PHP version ( 7.1 ) – It is the word that can be defined in the for loop or for each. it accepts arrays or objects and it can be used as a PHP data type – Or in another definition, The iterable is everything that can

Operator Precedence

The PHP operator precedence refers to when doing a calculation for three or more numbers, they are calculating its values according to the priority. For example, 10 + 10 × 2, the result is 30 and not 40. That will lead us to explain the reasons in the following sections. The PHP operator precedence, like

PHP XOR Operator

In this tutorial, you will understand the PHP XOR operator. And going to dive more into some of PHP types through this operator with PHP code examples. Let’s get started with the concept explanation. The PHP xor operator is one of the PHP logic operators. It is used to merge two boolean results in the

PHP Null

The meaning of the PHP null is no value that has been assigned to the PHP variable or a direct no value. And we can use the “is null” to check the variable value has no value or not. Let’s see the syntax of the PHP null. The no value can be assigned to the

PHP Constant

The PHP constant expression is a name or an identifier which will never change its values during the script execution. The PHP constant can be defined with the predefined PHP function called – ”define()”. There are some points that have to be considered during writing the PHP constants. The PHP constant should be written in

PHP AND Operator

The PHP AND (&&) operator is one of the PHP logical operators. Used to return a true boolean value if all compared values have true boolean results. Before getting started, you have to read more about the PHP data types tutorial and the type juggling. The AND (&&) operator can be written as “&&” or

PHP Enumerable

Actually, the PHP enumerable is a new feature of 8.1 which allows you to define a new type. This feature seems like you define a PHP class, but it seems to method. For an example Definitely, in the previous example, I defined my new type as a “Cars”. But how to access it? Anyway, In