<?php class Host { public $blog = ""; public function __construct($blog) { $this->blog = $blog; } //metodo public function getBlog() { return $this->blog; } } // I moved this outside the class, duh $blog1 = new host("Test Blog"); $blog2 = new host("LOL Blog"); echo "<strong>Blog:</strong>". $blog1->getBlog() . "."; // I also removed the full stops, because that's concatenate in php echo "<strong>Blog:</strong>". $blog2->getBlog() . ".";
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`