<?php class Foo{ public function sayHello(){ return "Hello world!"; } } $Foo = new Foo(); $message = array( 'Foo' => $Foo->sayHello() ); var_dump($message);
You have javascript disabled. You will not be able to edit any code.