Home  >  Q&A  >  body text

Why should the variables defined in the parameter list be called using func_get_arg in the function? Wouldn't it be more convenient to call them directly?

function demo3($str3)
{
   $str3 = func_get_arg(0);
   return $str3;
}

function demo3($str3)

{

   return $str3;
}

PitohuiPitohui2135 days ago807

reply all(2)I'll reply

  • 秋香姐家的小书童

    秋香姐家的小书童2019-01-07 09:06:01

    You need to use callbacks under special conditions. Don’t worry about this. Just know that there is such a callback method.

    reply
    0
  • Cancelreply