Skip to content

Instantly share code, notes, and snippets.

View georgeh's full-sized avatar

George Hotelling georgeh

View GitHub Profile
@georgeh
georgeh / values.dot
Created October 11, 2013 17:16
Compare PHP values for truthiness - to generate http://i.imgur.com/B8R3PVK.png
graph values {
"''" -- "0"
"''" -- "0.0"
"''" -- "false"
"''" -- "null"
"'0'" -- "'0.0'"
"'0'" -- "0"
"'0'" -- "0.0"
"'0'" -- "false"
"'0.0'" -- "0"