JSON encode and decode in PHP

Hi friends, in this tutorial you will learn JSON encode and decode in PHP. Before getting started with JSON with respect to PHP, you must know what JSON means exactly. JSON is nothing but a javascript object notation with a specific syntax or format as shown below. {‘key’:value,’key1′:value1,’key2′:value2,’key3′:value3} Why we use JSON:- However, if we … Read more

PHP Rest API Example

Hi friends, if you are wondering on how to create a PHP Rest API or perform a CRUD operation using PHP Rest API then you have come to the right place. Creation of rest API is very easy and I am going to explain it in a step-by-step process. In this example, you will learn … Read more

Javascript Get Last Element of Array

In this tutorial, I will explain javascript get last element of array. Before getting started, you must know what is an array and the length property of the array. Also read, Generate Javascript Random Number between 1 and 10 What is an array:- Example of an array:- const companies = [‘TCS’,’IBM’,’HCL’,’INFOSYS’]; Length Property of the … Read more

Razorpay payment gateway integration in PHP

Hi friends, in this tutorial, you will learn the procedure of Razorpay payment gateway integration in PHP. Razorpay is one of the most reliable gateways and it is very simple to integrate than other gateways it accepts almost all the payment options such as debit, credit, net banking, UPI, and other digital wallets. If you … Read more

How To Read a file in Node JS

In this tutorial, you will learn how to read a file in Node JS. In order to do this, you have to include a built-in module of Node JS known as fs( File System) with the help of require() method as shown below var fs = require(“fs”);fs.readFile(“name of the file”,”encoding”,”function(err,data)) Please note that the readFile() … Read more

Linking An Email in HTML

Linking an email in HTML is a very easy and important feature of HTML. It opens the email-sending interfaces directly by clicking the hyperlink provided in HTML so that the user can directly send emails without going to email-sending platforms such as Gmail, Yahoo, etc. Also read, Text slideshow HTML with images using w3 CSS … Read more