Medium
What will this code display?
<?php
readonly class ParameterInput
{
public function __construct(
public string $key,
public mixed $value = null
)
{}
}
$myInput = new ParameterInput("myKey");
$myInput->value = "myValue";
echo $myInput->value;
Author: JérômeStatus: PublishedQuestion passed 91 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!