(erlando) This code only works because ( "" == NULL ) which in my eyes is a WTF in PHP. "" == 0 == NULL ... Riiiight..
Well, this is due to PHPs weak types; something one should be aware of. A better way to check against NULL would be is_null() or comparing with ===. But this would be expecting too much when looking at this code I guess ;)
(erlando) This code only wo
(erlando) This code only works because ( "" == NULL ) which in my eyes is a WTF in PHP. "" == 0 == NULL ... Riiiight..
Well, this is due to PHPs weak types; something one should be aware of. A better way to check against NULL would be is_null() or comparing with ===. But this would be expecting too much when looking at this code I guess ;)