Introduction to PHP !!

Hello readers, This is Rahull singh going to introduce you about PHP. Before starting it we need to know, actually what is PHP ..?? What is PHP  ? The very first thing which is taught is the full form of any language. PHP stands for Hypertext Preprocessor. (earlier known as Personal Home Page) PHP is a web designing language which

Continue reading

PHP SYNTAX

Before moving further towards the syntax, lets first know what a syntax is ? Syntax  – Syntax is defined as the structure of statements or arrangement of statements to create well-formed sentence in a programming language. (Ex : Ram eats a mango) This sentence is following an arrangement of noun verb and object to form a meaningful statement. Php’s syntax is very

Continue reading

Php variables

Hello everyone Today i am going to explain about variable. If you have ever gone through any programming language or algebra you might have heard about it. Lets discuss over it. What is variable  : A variable is a value or entity which can be changed depending upon the conditions or information passed through it. In other words, A variable

Continue reading

Php echo

In this tutorial, I am going to explain about echo. In php there are two ways of getting the output. Echo print You might observing that in the previous tutorials i am using echo command  for outputting the text in web browser (like chrome, mozilla). I bet you that you are going to use this command for outputting text more than

Continue reading

Php Datatypes

Hello Readers, Welcome back to Phpkeeda. Today the topic i am going to explain is about DATA TYPES. So the first question arise is : What is data type : Understand Datatypes in a simple way,  just break Datatypes into two part i.e Data+ types, means types of data. Datatypes = Data + Type It represents that which type of data

Continue reading

Why to learn Object-oriented PHP ?

Why to learn Object-oriented PHP ? Before moving further we should must know what i am going to learn and why it is useful to learn ? Object Oriented programming(OOP) gives us code re-usability feature. It means write a code and use it where you need it. Lets take a scenario to understand how OOPS is helpful for code re-usability.

Continue reading

Class and objects in php

In this lesson you will learn : How to declare class How to add properties in the class How to create objects of a class How to add and retrieve properties from an object How to add methods to a class What is class ? In php a class is a collection of  properties and methods which handles certain topics

Continue reading

constructor and destructor in php

Discuss about last tutorial. Today we will learn about constructors and destructors. Before moving further we should know what are constructors and destructors ? Why we use constructor and destructor in php ? Constructor are the special method which gets initialized (called) just after object initialization (creation). Similarly, destructors are its vice-versa. Destructors are special method which is used to

Continue reading

$this keyword in php

What is $this in php ? $this keyword is used to approach to properties and methods within the class. You can achieve the properties and methods of the class using syntax.          SYNTAX $this->name; $this->fruitDetails(); $this keyword always starts with “$” sign while the approached property and methods does not contains ‘$’ sign as illustrated above. Let’s write

Continue reading

chaining methods and properties in php

In the previous lesson we learnt how to use $this keyword with the syntax and example. In this chapter we will learn making chain to methods and properties. We use this chain word in daily life. It is same as cycle chain. One block is connected to another block. Here method and properties chaining works same as it works in

Continue reading