noob

  • Keeping HTML line breaks in PHP

    Another should-know-this-already snippet of PHP know-how… PHP will not include any line breaks immediately after a closing PHP tag. If you need or want to preserve white space in your rendered HTML code you’ll need to add a space in between the closing tag and the line break – or add echo “\n” ;. Line…

  • When NULL may be FALSE

    D’oh. Still a PHP noob after all… Despite NULL and FALSE meaning different things – they’re equal in PHP if you’re not type matching. ref http://stackoverflow.com/