Just thought I'd try defining a class method outside of the class definition
block.
Here's the code
<?
class test
{
function test() { echo "In constructor\n"; }
}
function test::blah() { echo "hello world\n"; }
$x = new test();
$x->blah();
?>
Here's the error I got
Parse error: parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting '('
in C:\WINNT\Profiles\mtowell\Desktop\test1.html on line 7
So, okay, I can't do that. I'd have to define "blah()" inside the "class
test{}" block
But my question is: what does "T_PAAMAYIM_NEKUDOTAYIM" mean?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php