I am starting to work with
interface
I have the following code:
indent preformatted text by 4 spaces
<?
interface try{
public function a(){}
public function b(){}
}
class MyClassName implements MyInterfaceName{
public function a(){
return 'this a';
}
public function b(){
return 'This is a';
}
}
$ob = New MyClassName;
echo $ob->a();
echo ''; echo $ob->b(); indent preformatted text by 4 spaces When I try the following echo $ob->a(); echo $ob->b(); it is not working properly. What am I doing wrong? Please advise.