<<< Previous question <<< Question ID#0431.md >>> Next question >>>
What would be output when the following code is run?
class M {
function m() {
echo "M";
}
function construct() {
echo "mmm";
}
}
$m = new M();
$m->m();
- A) MM
- B) MMmmm
- C) mmMMM
- D) mmm
Answer
Answer: A