Skip to content

Tag Archives: PHP-basics

The full form of PHP is a Hypertext preprocessor. It was developed by Rasmus Lerdorf. It is a programming language for developing dynamic web applications… Read More
The const keyword is used to declare a class constant. A constant is unchangeable once it is declared. The constant class declared inside the class… Read More
In this article, we have to pass a comment for PHP code by using some simple basic syntax. Comments are helpful to understand the complex… Read More
1. C++ : C++ was developed by Bjarne Stroustrup at Bell Labs since 1979 as an extension of the C language C++ is a general… Read More
Covariance: In PHP, the return type of method which belongs to the child can be more specific compared to the return type of method of… Read More
$this is a reserved keyword in PHP that refers to the calling object. It is usually the object to which the method belongs, but possibly… Read More
Predefined exceptions are available in PHP for more efficient exception handling but prerequisite to this article is learning exception handling https://www.geeksforgeeks.org/exception-handling-in-php/   Exception: This feature… Read More
There are classes and interfaces that can be either user defined or pre-defines in PHP language.  There are 9 predefined classes and interfaces in PHP:… Read More
An ampersand just before the function name will return a reference to the variable instead of returning its value. Returning by reference is useful when… Read More
The default parameter concept comes from C++ style default argument values, same as in PHP you can provide default parameters so that when a parameter… Read More
If-else and Switch cases are used to evaluate conditions and decide the flow of a program. The ternary operator is a shortcut operator used for… Read More
In PHP, there is an inbuilt function called ‘phpinfo’. By using this function, we can output all the Loaded Modules and see the ‘mod_rewrite’ is… Read More
Web Scraping is a technique used to extract large amounts of data from websites extracted and saved to a local file in your computer or… Read More
PHP Multidimensional array is used to store an array in contrast to constant values. Associative array stores the data in the form of key and… Read More
Form is an HTML element used to collect information from the user in a sequential and organized manner. This information can be sent to the… Read More