This demonstrates how to generate a random password, for things such as new member registration, or password resets.
This code will help you to learn how we can convert an image into a base64 string
Convert text URL's in a string to an HTML link.
Very common, people wanting to perform an action on many items. This will perform the action of deleting many files.
Converts the NASA SRTM-Data in .hgt-Format to ASCII .csv in the Format lat;lon;ele for easier import into databases. All .hgt-files are expected to be in a subdirectory relative to the script named "hgt". Save as converthgt.php, then run in console / command line: php converthgt.php > srtm.csv This will produce a large csv-file from all the .hgt-files in the hgt-subdirectory. The data is grouped by filename with a two-line grouping header.
keys of arrays contain arrays
Code for chatting with others across the internet.
Checks to see if one number is a multiple of another number.
Take an image, and put a water mark on top of it.
Turn a string into a readable url. Useful for blogs. Take a title of a post, say, "Best PHP scripts ever", this would create the string, "best-php-scripts-ever"
Take a JPG image, and convert it to ASCII code! Checkout the NEW ASCII converter! Supports all GD Images!
Do you display data from a database, but your table is one row? Fix that by using this code to make your data more than one row for readability.
This snippet opens a file, reads content from it and closes it.
This function let's you grab file extension from an array of filenames
Check a date range to see if it overlaps another saved date range.
This function is mainly for debugging purposes. Basically it shows where all the newlines, carriage returns, nulls, and tabs are located.
This script will be used to mail someone from your code
Implode on an array's keys instead of its values.
This function will calculate the difference in length between two strings.
tstr - truncate string It accepts three arguments( two required and one optional ) Returns the truncated string if the string is longer than the length specified. If the length of suffix is bigger than required length of string, than it will print and error.