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 1958 times
Edit
7
Community EvaluationsNo one has reviewed this question yet, be the first!
8
Which of the following statements are true ?8
What type of array is the following?6
What are the risks when running the following code ?8
What is the value of the `PHP_FLOAT_MIN` variable?10
Which of the following statements are true ?31
Explain the difference between the `include` and `require` functions in PHP.6
Usage of the spaceship operator in a PHP loop.