Home  >  Q&A  >  body text

Why does the self-executing function I wrote have syntax errors?

As follows:

echo (function ($e,$f) { return $e.' '.$f.'='.($e $f);})(10,20) ;

涛2290 days ago1101

reply all(2)I'll reply

  • 无忌哥哥

    无忌哥哥2018-06-14 10:54:48

    If a self-executing function needs to output a return value, echo cannot be used. Generally, return is used to return the information that needs to be output.

    reply
    0
  • 啊番酱

    This is not considered recursive. I reported the error according to his code? ?

    啊番酱 · 2018-09-28 23:12:43
  • Cancelreply