PHP Array Functions
PHP String Functions
PHP Filesystem Functions
PHP Date and Time Functions
PHP Regular Expressions Functions
Regular Expressions Syntax
There's an excellent regular expression tester at: http://regexpal.com/
* PCRE modifier
PHP fopen() Modes
PHP Date Formatting
¹ 0 is Sunday, 6 is Saturday.
² Week that overlaps two years belongs to year that contains most days of that week. Hence week number for 1st January of a given year can be 53 if week belongs to previous year. date("W", mktime(0, 0, 0, 12, 8, $year)) always gives correct number of weeks in $year.
³ The Epoch is the 1st January 1970.
⁴ With leading zeroes
PHP Cheat Sheet by DaveChild
A quick reference guide for PHP, with functions references, a regular expression syntax guide and a reference for PHP's date formating functions. As of 28/6/14, the cheat sheet now includes popup links to the appropriate PHP manual pages.
and 111 more ...
localwebdesign, 10:02 28 Nov 11
Thanks for adding these. They rock! the mysql and php ones are my faves. Found your site by searching for a SQL Server cheatsheet.
all of them are great!
Now to dream up one of my own to share. ;0)
Anan 12:17 7 Dec 11
I recently started learning html,php,mysql and I found your cheatsheets very helpful and also the four security lessons on Php scripting(addedbytes).
with bllesings from aboce
alan 07:46 5 Jan 12
this is better, got some ajax accordion function for clicking
Fishtankalpha 13:11 5 Jan 12
There is a lot missing.
DaveChild, 13:12 5 Jan 12
Well, yes. It's a quick reference, not a manual :).
xcession, 18:23 14 Mar 12
Nice Thanks :)
btw, can you make it a bit more compact? because table break into separated page when download as PDF.
Isaac 13:28 14 May 12
What good is this cheat sheet? It has function names and no descriptions or examples?
Is this a wordpress website? WTF!
elitely, 02:56 22 Aug 16
Add a Comment
Related Cheat Sheets
More Cheat Sheets by DaveChild