Javascript String Methods with example

In this tutorial, you will learn the javascript string methods with examples one by one as given below length:- This property returns the length of the given string which means it counts every character of the string and returns the total number of characters of the string. Example:- Output:- Below paragraph returns the length of … Read more

Generate Javascript Random Number between 1 and 10

Hi friends, in this tutorial you will learn how to generate javascript random number between 1 and 10 which means you have to return all the numbers except 10 which means zero to nine. In order to generate random numbers, you should have the idea of two javascript functions as mentioned below Math.random() Math.floor() Math.random( … Read more

PHP JSON to Array with Example

In this tutorial, you will learn how to decode PHP JSON to array with a detailed explanation. This is a very important feature often used in web development but before getting started, we must know about JSON as mentioned below What is JSON JSON is a javascript object notation and text-based format that is used … Read more

HTML Table with Fixed Header and Scrollable Body

Hi friends, In this tutorial, you will learn how to create an HTML table with fixed header and scrollable body using Datatables. The fixed header property helps us to view the header name at a fixed position against the table rows. Actually, there are so many tutorials on this topic such as using bootstrap by … Read more

What is Constructor in PHP

Constructor in PHP is declared with __construct() function uing double underscore. When we define a class, we declare individual set methods to access the particular property of that class but if we initialize a constructor inside the parent class, then no need to include set methods. It helps us to reduce the number of set … Read more

OOPS concepts in PHP with realtime examples

OOPS means object-oriented programming. As we all know that object-oriented programming is better than procedural programming. In procedural programming, we can write functions that contain operations on data but in object-oriented programming, we can write functions that contain both data and objects. It is based on classes and objects. Let us discuss the oops concepts … Read more