PHP Class Logic

ramonman

New Member
My question is rather simple, given:\[code\]class MyClass{ function a(){ echo "F.A "; } function b(){ echo "F.B "; }}$c=new MyClass;$c->a()->b()->b()->a();\[/code\]So that it will output:\[quote\] F.A F.B F.B F.A\[/quote\]What changes to code need to be made for this to work, or should it work as is or even just what this is called. If I could get whatever this term is called I could research it mysqlf, but I am not quite sure what to Google.Thanks in Advance!
 
Back
Top