== Quote from Markus Fischer ([EMAIL PROTECTED])'s article
>     At least, saying 'InstantiateMe->' looks wrong to me as I'm calling
>     'StaticClass::' actually.

You have to declare your method as static:

<?php
         class StaticClass {
                 static function staticMethod() {
                         throw new Exception("example");
                 }
         }
?>

Stephane

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to