Tell me, please, what is the error? 17 line. Thank you in advance!

enter image description here

Closed due to the fact that off-topic participants rjhdby , Dmitriy Simushev , pavel , Kromster , Alexey Shimansky October 23 '16 at 18:16 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reasons:

  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - rjhdby, Dmitriy Simushev, Alexey Shimansky
  • “Questions asking for help with debugging (“ why does this code not work? ”) Should include the desired behavior, a specific problem or error, and a minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, self-sufficient and reproducible example . " - pavel, Kromster
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • one
    Could you send in text format? Personally, I do not want to sit on the lines. - Silento

1 answer 1

You missed the semicolon in the 16th line.

function factorial($num){ $factorialIter = function($num, $acc) use (&$factorialIter){ ... }; return $factorialIter($num, 1); } 

PS For the future, if you ask people to spend their time, then be kind enough to spend your own and write code in text form.

  • 3
    But who needs to sweat the code to write? You answered the question, which means you can hope that the next time someone will answer - Alexey Shimansky
  • Interestingly, the minus for being able to answer and help a person, no matter what? - Bookin
  • Thank you very much! Indeed, stupidly entered, aware. I was driving to work, I could not send the text from the phone, the devil pulled to send from the mobile phone - curiosity stuck. Thanks again! - user214045
  • @Bookin maybe someone agrees with my statement and thus thus shows that this is not quite true. Educational measure. But this we do not know. I haven’t put a minus yet, but next time it is desirable to achieve the correct formulation of the question - Aleksey Shimansky
  • In general, I understand that they are “punishing”, but I think this is stupid, and I would like to receive a comment minus. They are trying to make people not help people, what kind of community is this then. Spent time, figured out the question, gave the answer, the answer is correct, is not harmful, and you are still being punished for it. Even newbies are snapped up; in general, they don't help to delay or stay in the community. - Bookin