![]() |
VOOZH | about |
This page has been generated with PHP 5.6.40
=== 'null'. The reason for adding these tests can be divided into two categories:
$copy (as the test will use a copy of the variable to not influence the other tests in the same table).Some of the test variables used, do not print the way they are set, either because they contain invisible characters or because they result in something else, so for your convenience, these are outlined here:
| † | How the variable is defined: |
|---|---|
| i8 | $x = 0xCC00F9; // Hexadecimal integer. |
| i9 | $x = 052; // Octal integer. |
| ia | $x = 0b0111001; // Binary integer (PHP5.4+). |
| ib | $x = ௫; // Tamil digit five - entered as string as PHP itself cannot deal with it as an integer. |
| ic | $x = ⁸₈; // Unicode superscript and subscript digit 8 - entered as a string as PHP itself cannot deal with these as integers. |
| f5 | $x = acos(8); // = NAN |
| f6 | $x = NAN; // = Not a number. |
| f7 | $x = log(0); // = Infinite. |
| f8 | $x = INF; // = Infinite. |
| f9 | $x = 1.2345E8; // Exponent notation float. |
| fa | $x = ⅕; // Unicode character representing 1/5 - entered as string as PHP itself cannot deal with it as a float. |
| sk | $x = "123, \"str\"\r\n"; |
| sn | $x = "\f\t\r\n"; |
| sp | $x = "\x7f\t\r\n" |
E_ALL & ~E_STRICT. All errors are caught and referenced (with #links) in the tables with details of the error messages (if any) below each table. Similar error messages are grouped together for your convenience.…. If you mouse-over the column label you will see the full variable/test information.| NULL: | null |
|---|---|
| Boolean: | true / false |
| Integer: | 123456789 / 0 |
| Float: | 12345.6789 |
| String: | ‘A string’ |
| Array and Object: | Indicated as such. Array keys, array values and object properties will be color coded according to the coding shown here. |
| Resources: | Resource id #16 |
This PHP cheat sheet collection is inspired by the Blueshoes cheat sheet and licensed under the GPLv3 software license. You can view and fork the source on GitHub. Pull requests welcome.
Like what you see ? Find this useful ? You can show your appreciation for the effort which has gone into creating these cheatsheets by giving a donation to the Remember me when I'm gone non-profit project, a charity which is close to my heart. Thanks!
© 2006-2026 Advies en zo, Meedenken en -doen