Skip to content

Tag Archives: PHP-basics

We already know how to get the factorial of a number in other languages. Let’s see how this is done in PHP using both recursive… Read More
This is a simple PHP program where we need to calculate the sum of all digits of a number. Examples: Input : 711 Output :… Read More
Arrays in PHP is a type of data structure that allows us to store multiple elements of similar data type under a single variable thereby… Read More
Constants are either identifiers or simple names that can be assigned any fixed values. They are similar to a variable except that they can never… Read More
Strings can be seen as a stream of characters. For example, ‘G’ is a character and ‘GeeksforGeeks’ is a string. We have learned about the… Read More
PHP follows few rules and maintains its style of coding. As there are many developers all over the world, if each of them follows different… Read More
A function is a block of code written in a program to perform some specific task. We can relate functions in programs to employees in… Read More
Like any other language, loop in PHP is used to execute a statement or a block of statements, multiple times until and unless a specific… Read More
PHP allows us to perform actions based on some type of conditions that may be logical or comparative. Based on the result of these conditions… Read More
Data Types define the type of data a variable can store. PHP allows eight different types of data types. All of them are discussed below.… Read More
In this article, we will see what is echo & print statements in PHP, along with understanding their basic implementation through the examples. The echo… Read More
The structure which defines PHP computer language is called PHP syntax. The PHP script is executed on the server and the HTML result is sent… Read More
PHP is a server side scripting language designed for web development by Rasmus Lerdorf in 1994. Since its launch in 1994 PHP has become an… Read More

Start Your Coding Journey Now!