PHP5 Intro

Via Simon, Sterling Hughes has posted his slides (apparently it is for Mozilla browsers only) for an upcoming PHP 5 presentation in New York tomorrow. Simon likes the class autoloading. I like the Exceptions handling.


<?php
define('NUM', 10);
try {
    if (NUM < 20) {
        throw new Exception(
            NUM . " is too small!"
        );
    }
} catch (Exception $e) {
    echo $e->getMessage();
    echo "\n<br />\n";
}
?>

Could prove very useful for debugging purposes.

I for one can’t wait for PHP5 to come out. I just hope PHPWebHosting.com isn’t slow to upgrade.

Comments are closed.