arc.php
<?php
Class abc
{
	function getval($x,$y)
	{
		$p = $x*$y;
		return($p);
	}
}
?>
index.php
<?php
require("arc.php");
?>
<html>
<head>
	<title>My Web Page</title>
</head>
<body>
<?php
$s = new abc();

echo "The area is ".$s->getval(5,5);
?>
</body>
</html>
Categories: Tutorial

Leave a Reply

Your email address will not be published. Required fields are marked *

4 × one =