PHP

PHP Tutorials

Welcome to PHP!

Welcome to PHP! : The PHP Hypertext Preprocessor (PHP) is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web based software applications. This tutorial helps you to build your base with PHP. Why to Learn PHP? PHP is a MUST for students and working professionals …

Welcome to PHP! Read More »

About PHP

What is PHP?

What is PHP? : PHP is an open-source, interpreted, and object-oriented scripting language that can be executed at the server-side. PHP is well suited for web development. Therefore, it is used to develop web applications (an application that executes on the server and generates the dynamic page.). PHP 7.4.0 is the latest version of P.H.P, which …

What is PHP? Read More »

variable in php

PHP Variables

The main way to store information in the middle of a PHP program is by using a PHP Variables.Here are the most important things to know about variables in PHP. All variables in PHP are denoted with a leading dollar sign ($). The value of a variable is the value of its most recent assignment. …

PHP Variables Read More »

Variable Scope in PHP

PHP Variable Scope

PHP Variable Scope can be defined as the range of availability a variable has to the program in which it is declared. PHP has three types of variable scopes: i. Local variableii. Global variableiii. Static variable Local variable The variables that are declared within a function are called local variables for that function. These local …

PHP Variable Scope Read More »

Constant in php

PHP Constant

PHP Constant are name or identifier that can’t be changed during the execution of the script except for magic constants, which are not really constants. To define a constant you have to use define() function and to retrieve the value of a constant, you have to simply specifying its name. Unlike with variables, you do …

PHP Constant Read More »

Operators in Php

PHP Operator

PHP Operator is a symbol i.e used to perform operations on operands. In simple words, operators are used to perform operations on variables or values. For example: PHP Operators can be categorized in following forms: Arithmetic Operators Assignment Operators Conditional (or ternary) Operators Comparison Operators Logical Operators We can also categorize operators on behalf of …

PHP Operator Read More »

Data types in php

PHP Data Types

PHP Data Types are used to hold different types of data or values. PHP supports 8 primitive data types that can be categorized further in 3 types: Scalar Types (predefined) Compound Types (user-defined) Special Types PHP Data Types: Scalar Types It holds only single value. There are 4 scalar data type in PHP. boolean integer …

PHP Data Types Read More »

loops in php

PHP Loops

PHP Loops are used to execute the same block of code a specified number of times. PHP supports following four loop types. for − loops through a block of code a specified number of times. while − loops through a block of code if and as long as a specified condition is true. do…while − loops through a …

PHP Loops Read More »

Arrays in php

PHP Array

PHP Array is an ordered map (contains value on the basis of key). It is used to hold multiple values of similar type in a single variable. An array is a data structure that stores one or more similar type of values in a single value. For example if you want to store 100 numbers …

PHP Array Read More »

String in Php

PHP String

PHP String is a sequence of characters i.e., used to store and manipulate text. PHP supports only 256-character set and so that it does not offer native Unicode support. There are 4 ways to specify a string literal in PHP. single quoted double quoted heredoc syntax newdoc syntax (since PHP 5.3) Single Quoted We can …

PHP String Read More »