Skip navigation.
Home

Add new comment

(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 ;)

Reply




*

  • Web and e-mail addresses are automatically converted into links.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <p> <br /> <br>