Hi I am new to PHP and want to do object oriented programming in PHP. I want to write a subroutine and call that subroutine. I tried the following code but it gives me an error.
Regards
Sanjay
<?
$ref = testfun();
print "Ref is $ref";
sub testfun()
{
return HI;
}
?>

