Skip to content

Tag Archives: PHP-basics

Arrow functions, also known as “short closures”, is a new feature introduced in PHP 7.4 that provides a more concise syntax for defining anonymous functions.… Read More
The for loop is the most complex loop in PHP that is used when the user knows how many times the block needs to be… Read More
The do-while loop is very similar to the while loop, the only difference is that the do-while loop checks the expression (condition) at the end… Read More
The continue statement is used within a loop structure to skip the loop iteration and continue execution at the beginning of condition execution. It is… Read More
The while loop is the simple loop that executes nested statements repeatedly while the expression value is true. The expression is checked every time at… Read More
The switch statement is similar to the series of if-else statements. The switch statement performs in various cases i.e. it has various cases to which… Read More
The goto statement is used to jump to another section of a program. It is sometimes referred to as an unconditional jump statement. The goto… Read More
Variable Scopes: The scope of a variable is defined as its extent in the program within which it can be accessed, i.e. the scope of… Read More
PHP is a general-purpose scripting language that is especially used in web development. It was created in 1994 by Rasmus Lerdorf. It is used to… Read More
In PHP, $var is used to store the value of the variable like Integer, String, boolean, character. $var is a variable and $$var stores the… Read More
In this article, we have submitted a form using JavaScript by clicking a link. In the body tag, created an HTML form and specify the… Read More
A “union type” accepts values of multiple different data types, rather than a single one. If the programming language supports union types, you can declare… Read More
Constructor Property Promotion is a simple shorthand syntax to declare and assign class properties from the constructor. Constructor Property Promotion is a new syntax provided… Read More
In this article, we will use PHP in HTML. There are various methods to integrate PHP and HTML, some of them are discussed below. You… Read More
We can show all errors in PHP using the error_reporting() function. It sets the error_reporting directive at runtime according to the level provided. If no… Read More