We often need to convert a PHP array to a query string for use in a URL or POST request, and vice versa. Really, PHP is very rich with its build in functions as it has very useful function http_build_query() to convert a PHP array to a query string. Here in this post, I have an example […]
PHP
Here you will find useful PHP tips and tutorials.
PHP Script to Download Large Files Reliably
As a PHP developer, we often need to implement functionality to download files. But sometimes it needs to implement large files download in MB, GBs and that create many issues. So here I have created a simple PHP script to download large files .
Create Dynamic MySQL Record Inserter with PHP
As a PHP programmer, we always need to write INSERT statement repeatedly to insert records into database. This sometimes makes us annoyed to write same thing again and again in same script. To overcome this, we have created a generic insert script to handle all insert record by just passing array of table field name […]
Create Advance Pagination with PHP and MySQL
Pagination is an important part of any web application. It’s a process of dividing large content into small parts and displaying on multiple pages in chunks. When data grows in web applications, it cannot be displayed on a single page as it will create issue like browser hang and long vertical scroll. So the pagination […]
Manipulating PHP arrays: push, pop, shift, unshift
In spite of allowing direct access to individual array element, PHP provides various other interesting ways to deal with arrays. In particular, there are many PHP function that make it very easy and efficient to use PHP arrays in different ways such as a stack or as a queue etc.