Category: PHP

Left Join Query in Laravel 5

The leftJoin method has the same signature as the join method. When I fetch all columns from the get-go, the query takes too load to complete (around 5 secs on 350k rows), whereas with a left join that’s cut into only half a second. Let’s create a leftJoin method in laravel 5

PHP array_walk_recursive() Function

The array_walk_recursive() function runs each array element in a user-defined function. The array’s keys and values are parameters in the function. The difference between this function and the array_walk() function is that with this function you can work with deeper arrays (an array inside an array). Parameter Description array Required. Specifying an array myfunction Required. The name […]

Paypal Payment using PHP

In this tutorial I want to explain how to work with Paypal Sandbox test accounts for payment system development and sending arguments while click buy now button. It’s simple and very easy to integrate in your web projects. Create a Paypal Sandbox test account at https://developer.paypal.com/ payment.php success.php cancel.php

How to Add Years to Date in PHP

In this tutorial i will show you how to add years to date in PHP. Many project need this type speciality suppose, user subscribe account in 2 years need to two years add in current date. You may also like How to add one year in current date using php and How to Add Months to Date in […]