Saturday, August 16, 2008

How to create a php class? Here it is.

class myFunction
{
function getName()
{
return "Pedro";
}
function getAge()
{
return "18";
}
}


$mf = new myFunction();
$mf->getName();

Output:
Pedro


That's all folks. :D

1 Comments:

Blogger e-pOOr said...

hello,,,
thank u xa php class code huh...
jejejeje...

7:16 AM  

Post a Comment

<< Home