List/Grid PHP Functions Subscribe RSS feed of category PHP Functions
Calculate average and sum from Mysql query
The AVG function return the average value of the specified column. For example I have a table of product list and now I want the total of price and average…
How to Replace Newline with Space Using PHP
Sometimes you need to replace newline to space or any other format (i.e:- \r\n). This is done by copying and pasting the content. To resolve this problem I use the…
Force download using PHP
A force-download script can give you more control over a file download than you would have providing a direct link. Using a force-download script, you can: Download image file Download…
How to use ASCII value with PHP
Character encoding is useful in web development for generating character strings from random numbers (CAPTCHA images for instance), displaying non-standard characters and many other purposes. To use charachter encoding with…






