All pastes #339681 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-02-04 07:10 UTC
rendered paste body
<?php

class A
{
	function emre()
	{
		return "A:EMRE";
	}
	
	function emre2()
	{
		return "A:EMRE2";
	}
}

class B
{
	var $oA;
	
	function B()
	{
		$this->oA = new A;
	}
	
	function emre3()
	{
		return $this->oA->emre();
	}
}

$B = new B;

echo $B->emre3();


?>