filter_var() in PHP

PHP’s FILTER_VALIDATE_EMAIL validates email addresses quickly and easily. <?php $email = “marc@somehost.com”; if(filter_var($email, FILTER_VALIDATE_EMAIL) === FALSE) { echo $email.” is invalid”; } else { echo $email.” is valid”; } ?> Read it all at http://www.phpbuilder.com/columns/marc_plotz10012009.php3?page=2

PHP on the JVM

Caucho’s Resin server now has PHP support with the Quercus module. Claiming anything from 4x to 6x performance improvement, and easy writing of extensions in Java (and presumably any JVM based language), it looks like a really great idea.