How to Compress HTML Code using PHP

Compressing the code is very beneficial for a website it increases website performance and load it faster by making webpage smaller and lighter and it also affects website SEO, so this script strips out all the line breaks and spaces in your code and puts it on one line, compressing your code and making it […]

PHP array_fill_keys() Function

It fills an array with the value of the value parameter, using the values of the keys array as keys. The function array_fill() is used to assign or fill mixed values to an array by declaring suitable number of elements in the array. Whereas the function array_fill_keys() is used to fill mixed values to an array corresponding […]

PHP rsort() Function

This rsort() function is used to sort an array in reverse order (highest to lowest). Note: If two members compare as equal, their relative order in the sorted array is undefined. TRUE on success. FALSE on failure Parameter Description array Required. Specifies the array to sort sortingtype Optional. Specifies how to compare the array elements/items. […]

Multiple file upload in Codeigniter

CodeIgniter’s File Uploading Class allows uploading files on the server. You can upload single file or image easily using core php. But sometimes multiple file uploading feature needs to be provided the in the web application. This article will help to upload multiple file and image at once using for loop. You may also like Multiple […]

PHP natcasesort() Function

The natcasesort() function sorts an array by using a “natural order” algorithm. The values keep their original keys. This function is case-insensitive. This function returns TRUE on success, or FALSE on failure. Parameter Description array Required. Specifies the array to sort Syntax

PHP array_replace() Function

The array_replace() function replaces the values of the first array with the values from following arrays. Tip: You can assign one array to the function, or as many as you like. If a key from array1 exists in array2, values from array1 will be replaced by the values from array2. If the key only exists […]

Onsubmit event using ajax and return true but Form not submit using Jquery

The onsubmit event is commonly used to validate the contents of form controls and set the contents of some input:hidden elements before submitting. If the user forgot to fill some required fields or made some other mistake on the form, you can cancel the submission with the onsubmit event. See the example below for details […]