PHP Destructor

In this tutorial, we will learn about PHP Destructor. The destructor method is totally reverse of the constructor method. PHP destructor does not return any value. In case we create __destructor function in class, PHP will automatically call the destructor function if there are no other references to a particular object or at the end of the script. Please Note, that

PHP Destructor Read More »

PHP Constructors

In this tutorial, we’ll explore the PHP Constructors, a special function within a class. Its primary purpose is to initialize the properties of each object instance. The constructor is remarkable because it’s automatically invoked when a new object is created. Let’s delve into the details of this essential feature. Please Note, that the construct function

PHP Constructors Read More »

PHP Classes and Objects

In this tutorial, we will learn about PHP Classes and Objects. As we know Object-oriented programming is a programming paradigm, based on the concept of classes and objects. In very easy language a class is the blueprint of the object and an object is a run time instance of that class. Let's check how to define a class and create an

PHP Classes and Objects Read More »

What is PHP OOPs

In this tutorial, we will learn about What is PHP OOPs. OOP stands for Object-Oriented Programming. Object-oriented programming is a programming paradigm based on the concept of classes and objects. By using the OOPs approach we can divide the software program into simple, reusable pieces of code(known as a class). The classes are used to create individual instances of objects. Difference between Class and Objects:

What is PHP OOPs Read More »

Date in JavaScript

In this tutorial, we will learn Date in JavaScript. JavaScript Date method helps us to do various basic functions like to get the current date, time and year. We can also add timers on the Web pages with the help of the date object. Date object provides us with four types of constructors we can use any according

Date in JavaScript Read More »

String in JavaScript

In this tutorial, we will learn about String in JavaScript. In Strings are normally defined as a sequence of character. For example “Owlbuddy” Yes you can say “Owlbuddy” is a String in the programming language. There are two ways to define String in JavaScript: Using String literal Using String object Now we will check each way to

String in JavaScript Read More »

Array in JavaScript

In this tutorial, we will learn about Array in JavaScript. If you ever learn any other programming language then you would have a clear idea about Array. For those who are listening to this word for the very first time. The array is a collection of similar type of data elements. We use a single literal to

Array in JavaScript Read More »

Objects in JavaScript

In this tutorial, we will learn about Objects in JavaScript. JavaScript is an Object-Oriented based language. Because programmers can perform basic oops concepts in code while working in JavaScript. But there is some difference as compared to other object-oriented programming languages. Because in JavaScript we don’t create classes. Because we create objects directly. it means you

Objects in JavaScript Read More »

Functions in JavaScript

In this tutorial, we will learn the Functions in JavaScript. Main purpose to use function is to reuse the code. For example, you have a large program where you want to perform the sum of two number multiple times. You can do this with the help of function without writing the same piece of code multiple times. Functions

Functions in JavaScript Read More »

×