All pastes #23619 Raw Edit

Something

public text v1 · immutable
#23619 ·published 2005-09-22 16:15 UTC
rendered paste body
<?PHP

	class testingthis
	{
		var $test_var = "woot";
		function priv_test()
		{
			echo "private function accessed ";
			echo "$this->test_var";
			echo "<br>";
		}
		function open_inner()
		{
			$this->priv_test();
		}
	}
	
	class testtwo extends testingthis
	{
		function arg()
		{
		  echo " testing parent access using same function name";
		  $this->open_test();
		}
	}
?>

<html>
<head>
<title> test page </title>
</head>
<body>
testing...<br>
<?PHP
	$testobj = new testtwo;
	$testobj.arg();
	$testobj.open_test();


?>
done..

</body>
</html>


testing...

Fatal error: Call to undefined function: arg() in D:\inetpub\wwwroot\Dispatch2\test.php on line 36