is possible to define classes in PHP this way
<?
class myclass
{
function writeln();
}
myclass::writeln()
{
printf("Hello world\n");
}
var $a = new myclass();
$a->writeln();
?>
i tried it , but i was getting errors.
Parse error: parse error, unexpected ';', expecting '{' in test.php on line
4
Is there no way i can define the function outside of the class definition ?
I dont want to define all the functions inside the class definition.
Examples in docs showed functions defined withing the class only.
Arvind
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help