PHP Snippets

Every PHP developer needs a good and reliable collection of code snippets. In this category, you will find 900+ copy and paste code snippets that will help in your next PHP project.

Results via Envato Market

PSH highlights and indents source code using highlight configuration files which are similar to Ultraedit highlighting files As such it currently supports C C Java Perl PHP Pascal Lisp Mumps

This page will validate the structure of a string to your specifications This script will verify a password to make sure it contains a lower and upper case alpha character

A short piece of code to help move dates and times around Store the date and time in one column in mysql and use this to help display it however

If you like me are too lazy to indent your php or javascript code this little php will do it for you It’ll intent using tabs searching for curly brackets

Often the mail functions of php cannot be used because they need access to sendmail or an equivalent binary and or specific settings in php ini on a given server