Category: PHP

PHP array_intersect_assoc() Function

The array_intersect_assoc() is used to create an array containing keys and values of the first array whose values (i.e. from the first array) are present in all other arrays, while index of values is same for all the given arrays. This function compares the keys and values of two or more arrays, and return an […]

PHP array_udiff() Function

The array_udiff() function compares the values of two or more, and returns the differences. Note: This function uses a user-defined function to compare the values! Returns an array containing the entries from array1 that are not present in any of the other arrays Parameter Is Required Description array1 Required. Array to compare from array2 Required. […]

How to Ajax Pagination in PHP

Pagination is a crucial part of any website, especially if you have hundreds of database records that you want to group and display them as pages, and in modern days with the help of Ajax you can create pagination that doesn’t require any page reloading, users can stay in same page and navigate through vast […]

How to create new folder using php

In this tutorial we will create new folder using php. i have used the mkdir command to make a folder, however i would like it to make a folder based on the username of the person who is currently logged in. You may also like How to check a folder doesn’t already exist using php and How to […]

PHP fprintf() Function

The fprintf() function writes a formatted string to a specified stream resource. Returns a formatted string formatting, using the inputs to dynamically input their values into the formatted string using a preset set of rules, specified below. You may also like How to calculate total price using keyup function in jquery or javascript and How to Price Range […]