Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 431 Bytes

0618.md

File metadata and controls

27 lines (23 loc) · 431 Bytes

What is the output of the following?

function _1dotEach($n) {
    if ($n > 0) {
        _1dotEach(--$n);
        echo ".";
    } else {
        return $n;
    }
}
_1dotEach(4);
  • A) ....
  • B) ...
  • C) ..
  • D) .
Answer

Answer: A