How to create multiple database connections in Lumen. Last week I was working on a project in...
Category - PHP
How to Swap Two Numbers in PHP
Write a PHP script to swap two numbers. In this tutorial, we are going to write a code to swap two...
How to Reverse a String in PHP without using strrev() Method
Write a script to reverse a string in PHP without using strrev() method. In PHP, we can reverse a...
How to Find Second Largest Number in Array using PHP
Write a PHP code to find second largest number in array. Given an unsorted array, we have to...
PHP Program to Print Prime Numbers between 1 to N using Sieve Algorithm
Write a php program to print prime numbers between 1 to N. In this tutorial, we are going to use...
Smarty Date Format – Convert Timestamp to Date, Time Format
How to convert timestamp to date and time format in smarty. You store the value of date and time in...
What is Memcache,How to use Memcache in PHP
Memcache is a high performance distributed in-memory object caching which improves the website...
How does Bubble Sort in PHP
What is Bubble Sort? Bubble sort is a sorting algorithm, It works by comparing each pair of...
Write a program to check whether a person is eligible to vote or not in PHP
In this tutorial we are writing a PHP Program to Check Eligibility for voting. To check that a...
How to do a join in Doctrine
It seems like a very simple thing, doesn’t it? After all, doing it in SQL is. But if...
How to pass JSON data to CSV using PHP
But since I already talked about how to consume webservices (whether REST or SOAP) I am going to...
Program To Find Largest Number Among Three Numbers In PHP
To find the greatest of three numbers in PHP, these three numbers must be taken as the input...
How to Remove Empty Array from MultiDimensional Array in PHP
In this example, I will learn you how to remove empty an array from multidimensional array in PHP...