Contact Us

Besiege Empty(), Isset() & Co. With This Great Syntax Cheatsheet

Posted on 22/6/07 by Tim Koschützki

Today I stumbled upon this great php syntax sheet cheat that displays to you all possible outputs of gettype(), empty(), is_null(), isSet() and (bool) for a whole range of different syntaxes for value assignments etc. This is definitely a must-read when you are like me and simply cannot grasp how these functions operate on different datatypes for different values!

The cheatsheet also contains valuable information about the different types of comparisons between strings, strings and integers, strings and floats, etc. using the equality operator (==) and the identity operator (===). You get the idea.

Awesome work there!


You can skip to the end and add a comment.

This post is too old. We do not allow comments here anymore in order to fight spam. If you have real feedback or questions for the post, please contact us.