Question from the PHP - Fundamentals test

Write a PHP class with a constant and a public method that outputs the constant.

Medium

What do keyword and instruction need to be replaced by in the following code to output the welcome message ?

class Greetings {
<keyword> WELCOME_MESSAGE = "Welcome to welovedevs !";
	public function greet() {
		<instruction>;
	}
}
$message = new Greetings();
$message->greet();
Author: ThéoStatus: PublishedQuestion passed 1645 times
Edit
5
Community EvaluationsNo one has reviewed this question yet, be the first!