How to output class

173
.
How to output this code

<?php
class body{
public function index()
{
echo 'Hello World!';
}
}
?>
.
(\/)____o_O____(\/)
$a = new body;
echo $a->index();
.
Ей 25
$object = new body; // create object class body
$object->index(); // method index
.
(\/)____o_O____(\/)
# Sohel (15.12.2014 / 14:48)
How to output this code

<?php
class body{
public function index()
{
echo 'Hello World!';
}
}
?>
replace echo on return in method body
.
Ксакеп
Sohel, RTFM! And use http://phpbeautifier.com/, please. It will be easier to read your code, and more people be able to help you.
Всего: 5