Class & Object in Php

Introduction Class and Object are one of the most important features of OOPs. Definition Class A class is simply a template for objects. A class is created by using the ‘class’ keyword, followed by the name of the class and a pair of curly braces ({}). All the properties/variables and methods/functions Read more…

Loading

Error & its Type in Php

Introduction Error is one of the major hindrances in the programming world. The error is generated in the program mainly due to incorrect or partial/incomplete knowledge of programming languages syntax.  Definition An error is one or more faults or mistakes in a Php program that may be caused by writing Read more…

Loading

Function in Php

Introduction Functions are essential building blocks of any PHP program, hence called Backbone part of Php, as they help to break down complex tasks into simpler & smaller ones. Definition A function is a sub-program/block of codes of a (complete) program that can be used repeatedly by the developer inside Read more…

Loading

String in Php

Introduction The string is the core-components part of Php for creating and manipulating strings in various ways. Definition A string is a sequence of characters of arbitrary length. Characteristics String literals/contents are denoted by either single or double quotes. For example – ‘Employee’ or “Employee” or “512” or ‘512’. To Read more…

Loading

Array in Php

Introduction of Array in Php It’s one of the most popular, simple, linear and static data structures. Definition of Array in Php PHP array is a storage that holds multiple values of similar type in a single variable. Features of Array in Php An array holds a group of values. We can Read more…

Loading

Control Statements in Php

Control statements in Php are code statements used to control the flow of execution of a program based on certain conditions or criteria. PHP provides various types of control statements, including: Types of Control Statements in Php Conditional/Decision Control Statements in Php: Conditional statements allow the execution of specific code Read more…

Loading

Operators in Php

Introduction Expression: An expression is a bit of code that can be evaluated to produce an output value. The simplest expressions are literal values and variables. A literal value evaluates itself, while a variable evaluates to the value stored in the variable. Definition An operator is a symbol that takes Read more…

Loading

Fundamentals of Php

History Php was originally developed by Danish-Canadian programmer Rasmus Lerdorf in 1993 but the first, stable version Php 1.0 was released on June 8, 1995. Introduction Php has the recursive acronym of ‘Hypertext Pre-Processor’. According to W3Techs reports, as of October 2022, “PHP is used by 74.4% of all the websites whose Read more…

Loading