CoderZone.org

 Category: PHP Code

Bookmark and Share

Count capital letters in a string - Two easy ways to find how many capital letters there are in a string.
Count days between dates - Find how many days there are between two given dates.
Count lines in file - Count the number of lines in a text file.
Count Uppercase Letters In A String - Easily count the number of uppercase chars in a string. Useful in forum p...
Count words in string - This code will look through the sentences in a block of text and calculate how many wor...
Cramers Rule Mathematical Function - A PHP function that will quickly solve the Substitution and Elimination p...
Create a drop down menu from an array list - A short snippet that creates a drop down menu from an array.
Create an HTML page on demand - Creating an HTML page on the fly. This could easily be populated from info draw...
Create Basic PDF - Very basic example of creating a PDF file.
Create gzip file - Basic example of creating gzip file on the fly.
Create mySQL table with PHP - Good for install scripts or automated table building.
Create thumbnails with PHP - Simple function that creates thumbnail images using PHP and the GD image library.
CSS Colornames to RGB values - The GetColor function returns an associative array with the red, green and blu...
Currency display formatting function - Great function to display a variety of currency formats from around the ...
CyberCash payment class - A class for doing payments to a CyberCash server.
Days in month #1 - Returns the number of days in the month for this month and this year.
Days in month #2 - Returns the number of days in the month for this month and this year.
De-Pluralize a String - A snippet that will take a given string and if it is plural, the 's' will be removed fr...
Decimal to octal conversion - Easy decimal to octal conversion example.
Define a schedule of holidays - Functions used to define a schedule of holidays. Can define non-fixed holidays ...
Define schedule of holidays - Functions used to define a schedule of holidays.
Delete all cookies set - This code snippet which will delete all cookies currently set by a website.
Delete by date - The snippet of code earlier that allows you to delete all files older than 2 weeks uses the fu...
Delete by wildcard - The simplest way to delete all files of a particular extension is to use the glob() functi...
Delete files older than 'X' - Quick and dirty code for cleaning out a directory of files so many seconds old (o...
Detect Mobile/WAP browser - This code will detect most Mobile/WAP browsers. Useful for serving up different con...
Directory Listing - A simple script that lists all the items in the directory including folders and files and a...
Directory Listing #2 - Lists all the items in a directory including folders and files.
Display html source with line numbers - Great way to show the html source of a page complete with line numbers.
Display stock quotes from a CSV file - Displays formatted stock quotes from a dynamically retrieved CSV file.

© coderzone.org | users online: 11