stdinc — A library of common PHP functions
This is a file I include in almost all my PHP applications. It contains a variety of functions I use from time to time. The code is released under the terms of the GNU Library General Public License.
You can download or view stdinc.php here. Save the file as “stdinc.php”.
stdinc.php in your PHP script as follows:
include( "stdinc.php" );
Refer to the documentation for specific information about each function.